Questions tagged [uisplitviewcontroller]

The UISplitViewController class is a container view controller that presents a master-detail interface. In a master-detail interface, changes in the primary view controller (the master) drive changes in a secondary view controller (the detail). The two view controllers can be arranged so that they are side-by-side, so that only one at a time is visible, or so that one only partially hides the other.

The UISplitViewController class is a container view controller that manages the presentation of two side-by-side view controllers. You use this class to implement a Master-Detail interface, in which the left-side view controller presents a list of items and the right-side presents details of the selected item. In iOS 8 and later, you can use the UISplitViewController class on all iOS devices; in previous versions of iOS, the class is available only on iPad.

After creating and initializing an instance of this class, you must assign two view controllers to the viewControllers property. The split view controller has no significant interface of its own because its job is to coordinate the presentation of its two child view controllers and to manage the transitions among different orientations.

A split view controller supports the same interface orientations as its currently visible child view controllers. Both view controllers are displayed in landscape orientations but only the detail view controller is displayed in portrait orientations. When transitioning between orientations, the split view controller sends messages to its delegate object to coordinate the display of a popover with the hidden view controller. For more information on the methods of this delegate object, see UISplitViewControllerDelegate Protocol Reference.

2116 questions
8
votes
2 answers

UISplitViewController portrait mode missing UIBarButtonItem

I have an application with a UISplitViewController, when I launch the app under potrait mode it's missing the "Group" UIBarButtonItem. I need to turn to landscape mode and back to potrait to make it appear. When I launch it in landscape mode it is…
adit
  • 32,574
  • 72
  • 229
  • 373
8
votes
8 answers

iOS 13 UISplitView Problems

On iOS 13 Beta 5, I currently have problems with my UISplitView on iPhones. My app starts with the detailsview off my splitview not with my masterview (look at the picture) Does anyone know how i can fixed this problem under iOS 13? On iOS 12…
Sebastian R.
  • 447
  • 8
  • 21
8
votes
4 answers

UISplitViewController: How to force showing the master ViewController

I am using a UISplitViewController, with the master and the detail viewcontrollers, without UINavigationControllers. In some cases (for example when clicking on a universal link), I would like to force the app to always show the master…
Daniele B
  • 19,801
  • 29
  • 115
  • 173
8
votes
1 answer

iPhone 6 Plus UISplitViewController crash with recursive _canBecomeDeepestUnambiguousResponder

I have an existing iPhone app that I'm adding a UISplitViewController to. The iPad part works like a charm, but I'm having a guaranteed crash with the iPhone 6(S) Plus. Setup - Master is a UITabBarController. Initial detail is a view with a…
sschale
  • 5,168
  • 3
  • 29
  • 36
8
votes
2 answers

Unbalanced calls to begin/end appearance transitions in UISplitViewController

My UISplitViewController basically works like a charm except that there is an annoying error message displayed when transitioning the first time (first time only!) from the master table view to the detail view. Unbalanced calls to begin/end…
borchero
  • 5,562
  • 8
  • 46
  • 72
8
votes
2 answers

How to make a UISplitViewController in portrait mode?

I want to make a UISplitViewController in portrait mode just like in the Settings app. How can I do it?
Knodel
  • 4,359
  • 8
  • 42
  • 66
8
votes
2 answers

iPhoneOS SDK - Remove Corner Rounding from views (iPad problem)

This might be a little bit picky, but in the iPad SplitViewController setup, there are 2 views. Each of the views has a very small black corner rounding. (This is probably the same with iPhone apps too). This rounding is visible in the image below.…
oberbaum
  • 2,451
  • 7
  • 36
  • 52
8
votes
2 answers

How to replace the deprecated method splitViewController:willHideViewController:withBarButtonItem:forPopoverController:

My standard implementation for this delegate method is the following. I just initialize the navigation button and save locally the button and the popover. - (void) splitViewController: (UISplitViewController *) splitController …
PatrickV
  • 1,090
  • 2
  • 9
  • 23
8
votes
1 answer

UISplitViewController in XCode 6 for iOS 7 app

I'm working on an iPad only application with UISplitViewController using Xcode 6 and Swift. The app should support iOS 7.1 and higher. I set the deployment target for the project to iOS 7.1 and kept SDK version at 8.0 to support Swift. I had a…
8
votes
6 answers

Programmatically highlight UITableView cell

I have an iPad app which uses a UISplitViewController (with a UITableView on the left and a detail view on the right). My table view highlights the selected cell in blue when you tap on it. When I call the following method, the cell is selected but…
beev
  • 1,197
  • 2
  • 16
  • 33
7
votes
2 answers

Change the size of MasterViewController when fired as a popover

When using a spilt view controller, I have a Master and Detail View. When the iPad is in Portrait mode, the master view is displayed as a popup. How can I adjust the height of the masterview (popup view)? I have tried: …
PhillyNJ
  • 3,859
  • 4
  • 38
  • 64
7
votes
5 answers

iOS 5.1 + UISplitViewController in PortraitMode + UIActionSheet in MasterController = Assertion failure

I have an app based on a UISplitViewController that shows an ActionSheet in the MasterViewController of the Split. Before iOS 5.1, I had no problems presenting the action sheet in the popover presented by the split, but now, apparently there is…
Omer
  • 5,470
  • 8
  • 39
  • 64
7
votes
1 answer

How to update a UITableView in detailview when changes the tabbar in the pop over controller?

I am creating an iPad app with splitview, here is the screen shot, In this one, I want to update the values in the righthand side tableview, when I change the tab in the masterview controller (left hand side). Which will be the good aproach, Should…
Mithuzz
  • 1,091
  • 14
  • 43
7
votes
4 answers

TabBarController and SplitViewController

i want my splitviewController to be displayed in within a TabBarController. Unfortunately, I firstly decided to just have a SplitViewController and chose apple's template. Now i am in the inconvenient position not knowing how to add it to a tab…
Faser
  • 1,256
  • 1
  • 18
  • 36
7
votes
0 answers

iOS 13 - UISplitViewController resize bug

I have a weird bug with UISplitViewController on iOS 13 (it works fine on iOS 12). I created a simple project to reproduce this bug. This app looks as follow, nothing fancy: I subclassed UISplitViewController as follow to allow resizing the…
DrS
  • 326
  • 1
  • 4