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

Why is my view disappearing on low memory warning?

My app has a tab bar controller, one of the tab items is a split view controller. It's master view controller (ie. at index 0) is a navigation controller loaded from a nib, due to it's custom navbar. If that sounds a bit obscure, well it's down to a…
0
votes
1 answer

Cannot change views in splitviewcontroller

I am trying to change the views in a splitview controller based upon clicking a button in a modalview (a person is selecting an option). I am using notifications to accomplish this: When the button is clicked in the modal view, it issues a notice,…
Aaron
  • 605
  • 1
  • 9
  • 19
0
votes
1 answer

How to go back to root view controller in uisplitviewcontroller like "Settings" app in iPad?

In the "settings" app of iPad, if u click on "General" > "About", then click on "General" at the side. The "About" page will jump back to root view controller. How do I achieve that in swift? I'm currently using…
JackyW
  • 345
  • 2
  • 11
0
votes
1 answer

NSException when displaying UIAlertController in own window

I am trying to show a UIAlertController over a UISplitViewController. I have tried everything that I have found on this site, and am sticking with an extension found here. extension UIAlertController { func presentInOwnWindow(animated: Bool,…
Siriss
  • 3,737
  • 4
  • 32
  • 65
0
votes
1 answer

How can you access the style of a root view of a split view controller in UIBuilder?

How can you access the style of a root view of a split view controller in UIBuilder?
Daniel Kivatinos
  • 24,088
  • 23
  • 61
  • 81
0
votes
2 answers

Change view of detail pane on UISplitViewController

I am working on an app to try and learn a bit more about the cocoa touch framework and am starting to use the UISplitViewController. From what I have learned so far, this has a property called viewControllers that is an array containing the master…
Jack
  • 3,878
  • 15
  • 42
  • 72
0
votes
1 answer

SplitViewController Button overlap

I have a UISplitViewController with a MasterViewController and a DetailViewController. In my MasterViewController i am adding a button with an target action assigned and it works all good... BUT: I want my button to be centered on the border between…
Creative crypter
  • 1,348
  • 6
  • 30
  • 67
0
votes
1 answer

UITextView not showing text until I rotate it

I'm using a UISplitViewController, with a view that has a UITextView as the master view, but the text does not load until I rotate the ipad twice. Logging when the app starts shows that the text view is available and the text inside it (which is…
zlog
  • 3,316
  • 4
  • 42
  • 82
0
votes
1 answer

How to enable UISplitViewController's preferredDisplayMode = .primaryOverlay setting for iPhone size class

I am trying to use the UISplitViewController for iPhone portrait mode (since it will use navigation controller instead). I tried to set the UISplitViewController's preferredDisplayMode = .primaryOverlay (which let user to swipe in/out master view…
John Tam
  • 31
  • 3
0
votes
0 answers

How to fix '[LoginVC viewControllers]: unrecognized selector sent to instance'

Im trying to use split view controllers for iphone but when i add the code for AppDelegate.m as below, i get the error. My app also utilises a login system using file LoginVC and that file was working fine before. [Storyboard image here][1]:…
0
votes
1 answer

Split-view on iPad (Swift 3)

I am trying to make a Split View Controller in Portrait show the master pane initially (without having to swipe or press a button). Is this possible?
user8276622
0
votes
1 answer

textfield scrolls with code but returns immediately to original position

Using iPad split view controller: (IBAction) textfieldEditingDidBeginAction:(id)sender{ CGPoint scrollPoint = CGPointMake(0.0, 40); [_scroller setContentOffset:scrollPoint animated:YES]; } The text field scrolls 40 but…
Ancient
  • 73
  • 4
0
votes
2 answers

Back Navigation from Embedded UISplitViewController Using Single Navigation Bar

I’d like to have split views in several places of my iOS app, none of them as the root view controller. I understand that split views are initially designed to sit at the root of the app and provide the root navigation controller, and that Apple’s…
0
votes
2 answers

Elegant solution for Split view controller vs Login

In a simple app that simply shows a split view controller what is the best way to display a login to the user before the master/detail is displayed and, once login is confirmed, display the split view controller's master/detail? Is there an elegant…
Leonardo Marques
  • 3,721
  • 7
  • 36
  • 50
0
votes
1 answer

iPad UISplitView question for Universal App

I am attempting to turn an iPhone app into a Universal App with a simple UISplitView for the iPad. I have added the following to the App Delegate: > if (UI_USER_INTERFACE_IDIOM() == > UIUserInterfaceIdiomPad) { > [window…
startuprob
  • 1,917
  • 5
  • 30
  • 45