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
7
votes
1 answer

How to display missing back button in Master-Detail1-Detail2 view in SwiftUI in landscape?

I'm using a NavigationView and NavigationLinks to move from a MasterView to a Detail1View and then further to a Detail2View. On an iPhone in portrait mode, the back button is displayed for all detail views and allows to move back from Detail2View to…
caram
  • 1,494
  • 13
  • 21
7
votes
2 answers

UISplitViewController: titleView in DetailViewController disappears on landscape orientation, intended behaviour?

I'm adding a custom titleView inside a navigation bar using navigationItem.titleView for both Master/Detail VC. On changing the orientation of the device to landscape, titleView under MasterViewController works fine, but for DetailViewController…
Avinash
  • 113
  • 1
  • 9
7
votes
1 answer

UISplitView's MasterViewController and Navigation Issue

I am updating my existing app to include a SplitView for iPads. I have it working with a UITabBar, but am having an issue with my masterViewController as it is generating a "duplicate" navigation bar that is covering my existing navigation items on…
David Sanford
  • 735
  • 12
  • 26
7
votes
6 answers

How to use a UISplitViewController as a Modal View Controller?

I am trying to display a UISplitViewController presenting it as a Modal View Controller in my iPad app. I manage to have it display, but for some reason there is a gap to the left of the modal view the size of a Status Bar which is also preserved…
A Salcedo
  • 6,378
  • 8
  • 31
  • 42
7
votes
2 answers

How to use a UISplitViewController in Swift

So I add a UISplitViewController to a project which is embedded with a UITabBarController. The UISplitViewController has a UINavigationController as a Master & Detail relationship with their own root controller. The Master UINavigationController…
A.Roe
  • 973
  • 3
  • 15
  • 34
7
votes
3 answers

How to select default item in detail view for iPad? (in Split View Controller)

I'm using a split-view controller. For iPad, when the app starts, I want to selected in the first item in master-view controller. So how can I do that in Swift? Thanks!
etnclp
  • 572
  • 1
  • 5
  • 15
7
votes
2 answers

Navigation Controllers in UISplitViewController leave space for bottom bar

As the title indicates, I am having an issue when using UINavigationControllers as the Master and Detail view in a UISplitView. The navigation controllers leave space for a bottom bar. When I remove the nav controllers, the views are rendered just…
7
votes
1 answer

Receive delegate method calls from multiple view controllers

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…
Isuru
  • 30,617
  • 60
  • 187
  • 303
7
votes
2 answers

iOS8 UIToolbar disappearing when showing detail view controller

I'm working with an app using a UISplitViewController as the window's root. I would like both the master and the detail view controllers to be a UITableViewController inside of a UINavigationController, with the UIToolbar visible. In a horizontally…
Mark Leonard
  • 2,056
  • 19
  • 28
7
votes
6 answers

Hiding UISplitViewController overlay in portrait

In adopting the new UISplitViewController I'm trying to make a change a default behaviour that occurs when using the UISplitViewControllerDisplayModeAutomatic mode. When working in portrait I want the primary overlay to hide when the user triggers a…
Parrots
  • 26,658
  • 14
  • 59
  • 78
7
votes
2 answers

UISplitViewController detail-only inputAccessoryView

I am trying to imitate Apple's iMessage application in terms of the message input toolbar. Apple has a UIToolbar which is the input accessory view of a UITextView it contains, and also the inputAccessoryView of the actual view. That way, the toolbar…
arik
  • 28,170
  • 36
  • 100
  • 156
7
votes
2 answers

UISplitViewController - Static master table view and multiple detail view controller

I'm trying to create an app which will have a similar interface to iOS's Settings app and I'm a bit lost on how to proceed. Basically, I plan to make the master view a static table view. And each of the rows in that static table view has their own…
aresz
  • 2,589
  • 6
  • 34
  • 51
7
votes
5 answers

"Application tried to present Split View Controllers modally"

I am still trying to find a solution to what is theoretically a very simple task and that is going from a UIViewController to a Split View Controller. (Why have apple made this so difficult). I am at a stage where I now put the SplitViewController…
drlobo
  • 2,139
  • 5
  • 32
  • 42
7
votes
3 answers

iOS7 UISplitViewController status bar

I am trying to add splitview controller as child view controller. parent view controller is navigation controller. the navigation bar is hidden for parent view controller and i wanted to show status bar as iOS 6 standard. I have added splitview…
xmax
  • 231
  • 1
  • 3
  • 8
7
votes
1 answer

UISplitViewController Hide/Unhide MasterView In Storyboard

I have a simple iPad app with MasterviewController with a tableview and and a DetailViewController containing a UIWebView. Then i dragged and dropped a SplitViewController in my Storyboard, connected it with my Master and Detail controllers. In…
Jessica
  • 1,508
  • 15
  • 25