FAQ Database Discussion Community


iPhone 6+ state restoration with tab bar in master split view

ios,uisplitviewcontroller,iphone-6-plus,state-restoration
I have a problem with supporting state restoration in iPhone 6+. Here's my hierarchy: Problem is when state restoration happens in Portrait orientation and then, at later point, state decoding attempt is made while in Landscape orientation. Explanation: In portrait mode, there is only TabBar as master view (in fact,...

Xcode Master Detail Application UIWebView not loading content

ios,xcode,uiwebview,uisplitviewcontroller
I have a Master Detail Application, on the RootViewController(master) I'm using a tableview to display links, when a user clicks on one of the cells it should populate the detailview with the appropriate webpage. In the RootViewController here is the code I'm using on the DidSelectRow: - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath...

iOS Presenting a view over a UISplitView Possible?

ios,objective-c,uisplitviewcontroller
I have been struggling to achieve a specific view presentation. In my app, I am using a UISplitViewController to present a menu and it's contents. I would like to have a custom presentation of a view over the entire view as shown. The message view and dimming view are for...

How to change Status Bar (Style / Color) of UISplitViewController iOS 8

ios,ios8,uinavigationbar,uisplitviewcontroller,uistatusbar
i am trying to change the status Bar Style of UISplitViewController i used to do that with UINavigationBar UINavigationBar.appearance().barStyle = UIBarStyle.Black but the UISplitViewController does not have an appearance property is there anyway to change that Style ?...

UISplitViewController and UINavigationController doesn't work properly with multiple storyboards

ios,uinavigationcontroller,uistoryboard,uisplitviewcontroller
I'm trying (for experiment) to work with multiple storyboards. The first storyboard (starts at startup) contains only one view controller that executes some code and download json data from a website. When finish the download task, the view controller (of first storyboard) set the entry Point of Second storyboard as...

Hide MasterViewController from DetailViewController in a SplitViewController

ios,objective-c,uisplitviewcontroller
I have a SplitViewController set up with a DetailViewController and a MasterViewController. The DetailViewController contains a map and I want to place a button on the map that collapses and expands the MasterViewController. Exactly like this in Apple's App Store app: Clicking on the button then gives: Any ideas on...

Can SplitViewControllers be used on an iPhone?

ios,iphone,swift,uisplitviewcontroller
I am building an App for the iPhone in Swift. I want a small slice of the top of my app to be a User Area, and the rest of the screen to be whatever view/page the user is currently viewing. This leads me to think that I need to...

Transparent space above 1st section in table view after rotate

ios,uitableview,uisplitviewcontroller
I have a split view controller, as the master view I have a UIViewController. That UIViewController has a toolbar and a tableview inside it. If I rotate the the split view to portrait and then back to landscape I see a space above the tableview that is transparent. When I...

ViewController Hierarchy - Remove UISplitviewController from stack

ios,objective-c,iphone,uiviewcontroller,uisplitviewcontroller
My app has a login view, a loading view,a split view, and a menu view. On launch, the initial view is the login view. It proceeds to the loading view when the user logs in successfully. Once the data is loaded, I present the split view. On the split view,...

UISplitViewController's detail view push error

ios,iphone,uinavigationcontroller,uinavigationbar,uisplitviewcontroller
I'm implementing a universal app using UISplitViewController for iOS8 and facing strange problem with the UINavigation and would really appreciate your expertise. My project has the following StoryBoard layout: On iPad, everything is working as expected. However, running on the iPhone, the navigation doesn't work as expected. Please see this...

iOS8 behavior on nested navigation controllers

ios,uinavigationcontroller,uitabbarcontroller,uisplitviewcontroller
My app has a top level navigation controller. It navigates between different pages and displays a navigation panel on top, as usual. One of those pages is a tab controller with 3 tabs. Each tab has its own navigation controllers because while being in a tab I need to open...

How do I prevent my UISplitViewController from displaying the master VC when rotating to portrait?

ios,uikit,autolayout,uisplitviewcontroller,size-classes
I have a UISplitViewController that is used to edit some text. The flow is basically like this: The user creates a new note. The user is transitioned to the Detail View Controller to create or edit said note. User can edit the text in either portrait or landscape. The problem...

SplitViewController detail view transition

objective-c,uisplitviewcontroller,detailview
My problem is that my detail view gets presented instead of being pushed on compact devices, has anybody ever encountered this behaviour? if so, how did you get it to do the push? My StoryBoard setting: splitviewcontroller-> -Master(UITabbarController) -> first Tab (navigation controller) -> root (custom class) with show detail...

Receive delegate method calls from multiple view controllers

ios,swift,uiviewcontroller,delegates,uisplitviewcontroller
I have an app with a SplitViewController. The MasterViewController is a UITableViewController. And the DetailViewController is a UIViewController with a MapView. I'm calling an API to get a list of events. In the tableView, I want to display the names and the addresses of the events. And in the mapView,...

UISplitViewController - dismiss / pop Detail View Controller in code in collapsed mode

ios,objective-c,iphone,uisplitviewcontroller
Since iOS8 we're allowed to use UISplitViewController on both compact and regular devices. This is great because I don't have to create two different storyboard for iPhone and iPad, but there's one problem that I'm stuck with. If the split view controller is on iPad(if the collapsed property is NO),...

Xcode Storyboard - Items not appearing

ios,objective-c,xcode,uistoryboard,uisplitviewcontroller
I have aUIView in a Detail Scene in my storyboard and the strangest thing happens. When I try to add a simpleUILabel and then run my app, it does not appear. Soooo weird. Here is a screenshot of my entire split view controller with the detail scene: Here is my...

UITableViewController add item via method

ios,objective-c,uitableview,uisplitviewcontroller
I am using a UISplitviewController and I am trying to add items to the table view. right now I have two ways Create a button and add it: UIBarButtonItem *addButton = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAdd target:self action:@selector(insertNewObject:)]; self.navigationItem.rightBarButtonItem = addButton; and this code runs when the button is clicked: - (void)insertNewObject:(id)sender...

UISplitViewController rotation iOS8 not working as expected

ios,rotation,uisplitviewcontroller
If I create a new UISplitViewController based project and add a couple of container views to the detail viewController, I can get rotation working properly for the container views and it does this without any code implementing rotation, it just seems to work out of the bag so to speak,...

Window's root view controller is not Split view controller

ios,ios7,xcode6,uisplitviewcontroller
I am trying to modify my existing app to use a split view controller. I've followed the sample master/detail project structure by adding a split view controller into my storyboard, made it the initial view controller and everything seemed to be working fine, until I tried to run the app...

configure cell drawRect : custom drawRect only appears after a drag in tableView?

ios,uisplitviewcontroller,drawrect,custom-cell
I have got a splitViewController, the destinationController is a tableViewController and I would like to control the design of the cell if a custom class "MyCell". The drawRect is called only when I drag the tableView : the red background appears only after the cell disappeared from screen and reappeared....

Override separateSecondaryViewControllerForSplitViewController: for specific UIViewController in monotouch

ios,monotouch,xamarin,uisplitviewcontroller
I am trying to override the default UINavigationController behavior on separateSecondaryViewControllerForSplitViewController: which is according to Apple doc Discussion Most view controllers do nothing by default but the UINavigationController class responds by popping and returning the view controller from the top of its navigation stack. My aim is to: return null...

My UIAlertView won't dismiss from MasterViewController of UISplitViewController

ios,uialertview,uisplitviewcontroller
I have the following code in my MasterViewController: override func viewWillAppear(animated: Bool) { super.viewWillAppear(false); let appDelegate = UIApplication.sharedApplication().delegate as! AppDelegate if((appDelegate.firstTime) != nil){ self.displayFirstTimeAlert() } } It dutifully displays the alert: func displayFirstTimeAlert(){ let message = "Please go to settings and set your preferred zipcode." let alertView = UIAlertView(title: "Welcome",...

UISplitViewController - Use as slideout-style menu

ios,iphone,swift,xcode6,uisplitviewcontroller
I'm struggling a bit with the new UISplitViewController in iOS 8. I want to achieve a slideout-style menu on iPhone (landscape and portrait) as well as on iPad in portrait orientation and a persistent sidebar on iPad in landscape orientation. I got a UITableViewController as the master and a UINavigationController...

UISplitViewController how to show the master view?

ios,uisplitviewcontroller
I need a ridiculously simple thing - in one of the detail views of my UISplitViewController I have a button. Clicking it should show/open master view. That's it. Is it even possible? P.S. it should work for all the layouts (iphone & ipad) and orientations. Even if the detail view...

UITabBarItem invisible in iOS 7 with UISplitViewController

ios,ios7,uitabbarcontroller,uisplitviewcontroller,uitabbaritem
I have a little problem easily reproductible with Xcode 6.1.1 : Create a new Tabbed application project Set the deployment target to iOS 7 Go into the storyboard and drag and drop a UISplitViewController Link it to the UITabBarController Edit the new Tab Bar Item, set an image and set...

UISplitViewController - side-by-side or overlay in portrait orientation

ios,uisplitviewcontroller
I want to implement the type of functionality as seen in the image below. I do not know if this is a UISplitViewController that has its trait collection overridden to display side-by-side in portrait orientation or if this is two UITableViewControllers using a custom animation object. Is it possible to...

UISplitView using Storyboard in Universal iOS app

ios,objective-c,xcode,uisplitviewcontroller
I am using UISplitView in my universal iOS application and I have one storyboard only. I am able to implement all functionality except few things, In iPad I want master view to be visible always hence I used the delegate, -(BOOL)splitViewController:(UISplitViewController *)svc shouldHideViewController:(UIViewController *)vc inOrientation:(UIInterfaceOrientation)orientation { return NO; } But...

MKMapView Crash on Selection of Annotation and then Immediate deallocation of map view

ios,objective-c,annotations,mapkit,uisplitviewcontroller
I have a splitviewcontroller application where the master view controller is a UITableView and the detail view controller contains a MKMapView and a single annotation. When I make a selection in the UITableView the secondary view segues to a different map view with a single annotation. When I select an...

swift splitview controller showing detail view even though it is empty

ios,swift,uisplitviewcontroller
I'm using a split-view controller. When I start it in some devices, the master view is hidden and just the detail is shown. The detail is empty because a row hasn't been selected in master yet. So, I need a solution that is one of the following: 1) Default the...