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
10
votes
2 answers

iOS: How to check if UIViewControllers are unloading? (Swift)

I'm using a UISplitViewController every time I click on a row in the Master VC I can see that viewDidLoad() is run in the Detail VC. Does this mean i'm creating a new instance of Detail VC each row click? If so, how can I check that the Detail VC…
Richard
  • 1,688
  • 3
  • 16
  • 21
10
votes
2 answers

iOS8 MGSplitViewController alternative

I am using MGSplitViewController library in my app. Till iOS7 it works fine but for iOS8 it is not working as expected because of the change of behaviour of UIPopoverController in iOS8. Attached is the screenshot of running MGSplitView code on iOS8…
XYZ
  • 597
  • 1
  • 7
  • 19
10
votes
2 answers

How can create a SplitViewController programmatically in Swift?

What steps do I need to do? In Objective-C we created a rootViewController and detailViewController, after there added this controllers to splitViewController. For example: - (BOOL)application:(UIApplication *)application…
val_lek
  • 3,120
  • 3
  • 14
  • 12
10
votes
1 answer

UISplitViewController iOS 5.1 causes popover arrow direction error

My app was working perfectly prior to iOS 5.1. It is a UISplitviewController with a UINavigationController in the left-hand pane, and updates the detail pane dependent upon choices made within that UINavigationController. The new sliding-in from…
9
votes
1 answer

SplitView in Storyboard, can't connect delegate

I have an iPad interface defined in a storyboard, with a SplitViewController. I want to set the delegate of the SplitViewController to point to the detail controller, but IB won't allow that connection to be made. Putting an "object" object and…
Evan Cordell
  • 4,108
  • 2
  • 31
  • 47
9
votes
3 answers

UISplitViewController delegate methods not called

I am using a UISplitViewController inside a UITabBarController with a plain UIViewController in the master pane of the split view and a UINavigationController in the detail pane, which itself contains a vanilla UIViewController. I am aware that…
Sam
  • 3,659
  • 3
  • 36
  • 49
9
votes
1 answer

SplitView for ipad and menu drawer for iPhone

Im developing one Universal app (for iPhone and iPad both). Following is the requirement of app . Requirement 1.There should be a menu (master on the left) and detail (on the right). 2.For iPhone menu or masterViewController should be on drawer or…
Wali Haider
  • 1,202
  • 1
  • 16
  • 23
9
votes
1 answer

How should I present a UISearchController using a UISplitView adaptive user interface?

Using a universal storyboard with an adaptive UISplitViewController user interface. I want to present a search controller on the primary (master) side, using the following code (from the master view controller): static NSString * const…
user4151918
9
votes
1 answer

Animating show/hide of master view in UISplitViewController in iOS 8

I'm using a split view in an iPad only, iOS 8 application in its standard form. (When the iPad is landscape it shows both the master and detail view; when portrait it shows the detail view full screen with a master view that slides in from the…
eliajf
  • 485
  • 7
  • 15
9
votes
3 answers

Programmatically dismiss detail view controller in collapsed display?

Question In a UISplitViewController collapsed display, how can I programmatically get back to master view controller? Detail I googled it but found no solution. Not sure if I was using the right keyword. This is how I show the detail view…
addlistener
  • 871
  • 1
  • 12
  • 20
9
votes
6 answers

UISplitViewController and complex view hierarchy

I'm doing an iPad tech demo and I'm running into a serious technical problem. I have an app concept that leverages UISplitViewController, but NOT as the primary controller for the entire app. The app flow could be described roughly as this: Home…
M. Ryan
  • 6,973
  • 11
  • 52
  • 76
9
votes
6 answers

iOS8 TabbarController inside a UISplitviewController Master

I've tried to expand the default Apple MasterDetail Template by adding a UITabbarController in front of the UINavigationController of the MasterView, so there is a structure like this: UISplitViewController (Master) > UITabbarController >…
ItsTCalling
  • 95
  • 1
  • 7
9
votes
7 answers

View drops 20 pixels when build against iOS 6 SDK in Xcode 4.5

After building my iPad app against iOS 6.0 SDK, I get this weird behavior with my UISplitViewController's detailed view. The detailed view is positioned 20 pixels (points / 40 pixels) lower than it should be. Here is what it looked like under…
MattyG
  • 8,449
  • 6
  • 44
  • 48
8
votes
2 answers

UISplitViewController delegate in a singleton

I did a lot of research on UISplitView and was not able to find a way to control a Split View when the Master and the Detail has a view that changes. Then I found a way to manage it with a singleton class that is the delegate. My problem is that i'm…
zamber
  • 938
  • 8
  • 25
8
votes
2 answers

iOS 14 UISplitViewController remove "hide/show" button in landscape on iPad?

In iOS 14, the new split view controller handles the bar button items for you. That's cool! So in portrait we see this: We're in portrait, so that button at the top left summons the "overlay" version of the Primary column. And in landscape we see…
matt
  • 515,959
  • 87
  • 875
  • 1,141