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
15
votes
4 answers

Storyboard, UIViewController and UISplitViewController

Trying to make storyboard based application for iPad. In it I need to transition from start screen (UIViewController) to main screen (UISplitViewController) and then to full-screen view (again UIViewController). I saw a number of discussions on the…
15
votes
6 answers

How to override trait collection for initial UIViewController? (with Storyboard)

I have an app targeted iOS8 and initial view controller is UISplitViewController. I use storyboard, so that it kindly instantiate everything for me. Because of my design I need SplitViewController to show both master and detail views in portrait…
Ilya Belikin
  • 645
  • 1
  • 5
  • 15
14
votes
4 answers

UISplitView with UITabbar

I have a strange one that I can not seem to fix. I am currently working on updating my app to iOS7. This all worked in iOS6. It is an universal app and thus uses same xib files. However the iPad uses UISplitViews on some. Like I said, this all…
13
votes
2 answers

UISearchBar will not respond in UISplitviewController Master

I have a pretty standard setup of UITableview as master controller in UISplitviewController, universal iOS9 app. Again, standard fare, I inserted a UISearchBar as the header of the table. self.searchController = [[UISearchController alloc]…
Dean Davids
  • 4,174
  • 2
  • 30
  • 44
13
votes
2 answers

How to name a back button in UISplitViewController

I have UITableViewController (its name is News) and UIViewController (its name is DetailViewController) and UISplitViewController. I want it to show a back button when I use an iPad in portrait orientation. I made the button but I cannot name it. I…
Alexander Khitev
  • 6,417
  • 13
  • 59
  • 115
13
votes
2 answers

Having a UINavigationController in the master view of a UISplitViewController in iOS 8

In my UISplitViewController, the master view is a UINavigationController containing a UITableViewController. Sometime, when the user selects an item in the table, I have to push another UITableViewController over the existing table in the master…
PatrickV
  • 1,090
  • 2
  • 9
  • 23
13
votes
5 answers

UINavigationController inside a UITabBarController inside a UISplitViewController presented modally on iPhone

I'm having a UISplitViewController that contains a UITabBarController as master view. This UITabBarController contains a UINavigationController. The detail view contains a UINavigationController as well. On the iPad this works as expected. The show…
12
votes
5 answers

Good iPad SplitViewController tutorial?

I'm new to iOS development and am trying to learn how to use the iPad's splitViewController. I've seen a couple of tutorials online but they all start with the master-detail template. Can someone suggest a tutorial or give me an example that makes a…
Praxder
  • 2,315
  • 4
  • 32
  • 51
12
votes
1 answer

iOS 5.1 swipe gesture hijacked by UISplitViewController - how to avoid?

A new behavior in iOS 5.1 related to UISplitViewController apps seems to be intercepting UISlider motion with undesired results. This might also apply to UISegmented Controls and any other control surface that handles left-to-right gestures. With a…
jbbenni
  • 1,158
  • 12
  • 31
12
votes
1 answer

iOS5 breaks UISplitViewController rotation callbacks, how to invoke manually?

As has been reported in other questions here on SO, iOS 5 changes how rotation callbacks for split view controllers are sent as per this release note. This is not a dupe (I think), as I can't find another question on SO that deals with how to…
glenc
  • 3,132
  • 2
  • 26
  • 42
12
votes
6 answers

IOS new Facebook iPhone App UISplitViewController Layout

Possible Duplicate: SplitView like Facebook app on iPhone another break away .net developer here now trying to get used to the world of IOS. I like the layout of the new Facebook iPhone app (October 2011), and want to implement something similar…
12
votes
1 answer

Swift 3 - UISplitViewController - Hide/Expand Master View in Landscape (e.g. Notes App)

Just started with Swift and would like to replicate some functionality present in the standard Apple 'Notes' app. Specifically the Expand button that appears in the Details View when on iPad in landscape mode. i.e. The closest I have come (as a…
12
votes
4 answers

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

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…
SFF
  • 877
  • 2
  • 11
  • 26
12
votes
1 answer

How do I make a universal iPhone / iPad application that programmatically uses UISplitViewController and UINavigationController?

I couldn't find a good answer anywhere to this. I am using a UINavigationController for my iPhone app, with everything is generated programmatically, nothing in Interface Builder. I am trying to port my app to iPad, using a UISplitViewController…
Arash Parnia
  • 135
  • 1
  • 11
12
votes
3 answers

Using splitviewcontroller on iPhone portrays detail view first

I'm currently developing for iOS 8 and developing an app with the new adaptive framework. The weird part is when I use the the splitviewcontroller on iPhone with this storyboard configuration the app does not start with the master view controller…
AJ_1310
  • 3,303
  • 3
  • 19
  • 26