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.

2100 questions
183
votes
14 answers

UISplitViewController in portrait on iPhone shows detail VC instead of master

I am using a Universal Storyboard in Xcode 6, targeting iOS 7 and above. I've implemented a UISplitViewController which is now natively supported on iPhone running iOS 8, and Xcode will automatically backport it for iOS 7. It's working really well,…
Jordan H
  • 45,794
  • 29
  • 162
  • 306
121
votes
10 answers

SplitView like Facebook app on iPhone

I want to create an iPhone app that uses a navigation scene similar to the one pictured in the link Please note I do not want this to only work for iPad, I want it to work for iPhone exactly as pictured, when you click on a tableview item it hides…
52
votes
10 answers

Hiding the master view controller with UISplitViewController in iOS8

I have an iOS7 application, which was based on the Xcode master-detail template, that I am porting to iOS8. One area that has changed a lot is the UISplitViewController. When in portrait mode, if the user taps on the detail view controller, the…
ColinE
  • 64,631
  • 12
  • 149
  • 215
50
votes
4 answers

UISplitViewController programmatically without nib/xib

I usually create my projects without IB-stuff. The first thing I do is to strip off all references to xibs, outlets updated plist, etc and so forth. No problems, works great (in my world)! Now, I just installed 3.2 and tried to develop my first iPad…
Steve
  • 531
  • 1
  • 4
  • 5
46
votes
11 answers

UITableViewCell Set selected initially

Hi there I have situation where in an iPad app my master controller has list and details controller have its details , a typical UISplitViewController pattern. What I want to achieve is , my first row should be initially selected and later I want to…
Sagar In
  • 571
  • 1
  • 4
  • 8
45
votes
16 answers

Change the width of Master in UISplitViewController

The iPad programming guide says that the splitView's left pane is fixed to 320 points. But 320 pixels for my master view controller is too much. I would like to reduce it and give more space to detail view controller. Is it possible by anyway? Link…
Raj Pawan Gumdal
  • 7,132
  • 10
  • 55
  • 85
41
votes
8 answers

Open UISplitViewController to Master View rather than Detail

I have a split-view interface with a target iPhone 6 application. On the first launch of the application, it opens to the Detail View; I would like it to open to the Master View. I have tried: self.splitViewController?.preferredDisplayMode =…
Tom Foutz
  • 515
  • 1
  • 4
  • 7
32
votes
8 answers

iPad SplitViewController with menu in portrait mode like settings app

I would like obtain a SplitView on my iPad application with my left menu in a portrait orientation such as iPad settings. For now in portrait orientation I have a content view in full screen and I have a button at NavigationBar which includes a…
Smalldevil
  • 321
  • 1
  • 3
  • 3
30
votes
2 answers

iOS - Split View Controller - How do I get a pointer (reference) to the Detail View Controller from inside the Master View Controller?

iOS - Split View Controller - How do I get a pointer (reference) to the Detail View Controller (the bigger right one) from inside the Master View Controller (the smaller left one)? My gut tell me the Main Split View Controller should have a…
unom
  • 11,292
  • 3
  • 30
  • 47
29
votes
9 answers

Best way to switch between UISplitViewController and other view controllers?

I'm authoring an iPad app. One of the screens in the app is perfectly suited to using a UISplitViewController. However, the top level of the app is a main menu, which I don't want to use a UISplitViewController for. This presents a problem, because…
occulus
  • 16,618
  • 6
  • 51
  • 76
28
votes
9 answers

UISplitViewController in a TabBar ( UITabBarController )?

I am in kind of situation that I need to start with a tab based application and in that I need a split view for one or more tabs. But it seems that split view controller object can not be added to the tabbarController. (Although tabbar object can be…
27
votes
8 answers

UISplitViewController: How force to show master popover in app launch? (portrait)

In an iPad App i'm using the UISplitViewController. I need to force to show the master popover when the app launch in portrait mode. Now I'm using this code and it works well on iOS 5.0. if…
alejandromp
  • 856
  • 1
  • 9
  • 18
26
votes
9 answers

How to hide master view in UiSplitviewcontroller in ipad

Is there is any way to hide the master view in a splitviewcontroller programmatically. In my application the first screen will be of a splitviewcontroller, i don't need any split view for the next screens. How i can achieve this
i0707
  • 567
  • 1
  • 4
  • 14
25
votes
4 answers

iOS: UISplitViewController cannot be pushed to UINavigationController

I have an XCode iPad project using a navigation controller. I tried to get a button to push a UISplitViewController to the navigation stack, but got this error: Split View Controllers cannot be pushed to a Navigation Controller Turns out…
Theron Luhn
  • 3,805
  • 3
  • 32
  • 45
24
votes
5 answers

Collapse a doubleColumn NavigationView detail in SwiftUI like with collapsed on UISplitViewController?

So when I make a list in SwiftUI, I get the master-detail split view for "free". So for instance with this: import SwiftUI struct ContentView : View { var people = ["Angela", "Juan", "Yeji"] var body: some View { NavigationView { …
MScottWaller
  • 2,611
  • 16
  • 36
1
2 3
99 100