iOS 8 UI Alert View - ios8

UI alert view and toolbar is getting dislocated for iOS 8. This occurs only if we move from a horizontal view to portrait view.
![Screen shot1

in iOS8 system provide a new class UIAlertController,A UIAlertController object displays an alert message to the user. This class replaces the UIActionSheet and UIAlertView classes for displaying alerts.
UIActionSheet and UIAlertView is UIView subclass,i guess iOS8 adjust screen rotate logic,so you need use UIAlertController in iOS8 and after。this a class will help you https://github.com/wangyangcc/FYAlertManage

Related

iOS 13 Presenting Modal half screen for iOS, popover for iPadOS

What I'm looking to achieve is the exact same behavior as share view of iOS 13. I want to present my custom picker view as popover on iPad, and as semi modal on iPhone. I'm currently using "present as popover" on storyboard, which I get the default behavior that auto switches between popover and modal for free. I guess I need to switch to custom controller, but I'm lost on how to achieve this.

Xamarin iOS Storyboard having rendering error NullReferenceException

When opening storyboard recently, the ViewController in the Storyboard will have problem rendering. It is showing NullReferenceException.
What can be the problem?
Found out that we need to disable the rendering of screen in UI Designer (Recent version of Xamarin will add the screen into Custom Components too).
To turn off the rendering, we need to set the DesignTimeVisible flag to false.
[System.ComponentModel.DesignTimeVisible(false)]
public partial class ViewController : UIViewController
I have also written more details in my blog HERE.

How to incorporate a UISearchController into new (iOS8) UISplitviewController

I try to build a simple app based on the UISplitViewController template from Xcode 6 for universal apps (with Storyboard and CoreData/NSFetchedResultsController). This app should also provide a search bar for the MasterViewController. Unfortunately, Xcode 6 provides no InterfaceBuilder element for the UISearchBar/UISearchController combo (only the depreciated UISearchBar/UISearchDisplayController).
In the iOS Developer library, Apple provides the "Table Search with UISearchController" example, but this is not based on the UISplitViewController and supports only iPhone.
My problem is, that I'm not able to show the detail view on the correct ViewController under all circumstances. I tried to transfer the approach from the Apple example project to the UISplitViewController template. In this, one is encouraged to show the search results in a separate UITableViewController subclass (ResultsTableViewController) and use this as the searchResultsController of the UISearchController. I was not able to create a scene in InterfaceBuilder for this setup so I had to add these manually in code.
The problems begin when I click on a table cell of the ResultsTableViewController. This vc is not part of the scene in InterfaceBuilde and I don't know how to add it to the SplitViewController setting correctly. The biggest problem is the weird behavoir of the iPhone 6 Plus and the UISplitViewController. In portrait mode it behaves like an iPhone and doesn't seem to have a SplitViewController and only uses a NavigationController to which I push my DetailViewController. In landscape mode it behaves like an iPad with SplitViewController were I have to get the second ViewController of the SplitViewController childControllers and push the DetailViewController on this one.
Now it happens, when I start in portrait mode and switch to landscape mode that the DetailViewController is all gone, showing gray space where the DetailVC should be. It seems, when going to portrait mode, the DetailViewController gets kicked from the SplitViewController (or the SplitViewController gets kicked at all in favor for the iPhones NavigationController setup). When switching back to landscape the SplitViewController is initialized again but without proper initialization of the DetailViewController.
Is there any template or suggestion on how to correctly implement search capabilities on a universal UISplitViewController?
Cheers
Björn

Get Scrollview from MKMapView

Im trying to get the scrollview from MKMapView but it returns MKScrollContainerView instead of UIScrollView. I am trying to do this in ios6 and ios7. Does anybody know how I can access that scrollbar.
Thanks,
John

Load WebView URL inside Notification Bar NSPopover

I'm a noob OSX Developer having issues getting a WebView to load a URL when inside of a Custom View using NSPopover...My NSPopover is activated when a notification bar item is clicked.
This code is in my application delegate under
"- (void)applicationDidFinishLaunching:(NSNotification *)aNotification":
NSURL*url=[NSURL URLWithString:#"http://www.google.com"];
NSURLRequest*request=[NSURLRequest requestWithURL:url];
[[_webView mainFrame] loadRequest:request];
It works just fine if I move the WebView to any other window, but the WebView in my Custom View for this NSPopover displays as a blank page. Any ideas why? Any additional information you might need? Limitation of the CustomView?
You have created the Outlet in IB for the UIWebView in your Custom View ? and strung it together?

Resources