uisplitviewcontroller

How to use a UISplitViewController in Swift

廉价感情. 提交于 2019-12-04 11:20:37
问题 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 rootController has a detail segue to the Detail UINavigationController . See here: All pretty simple right ? Now in the TableViewController I do the following; class TableViewController: TableViewController, UISplitViewControllerDelegate { var

Split View Controller not as a Root View Controller

▼魔方 西西 提交于 2019-12-04 10:53:39
I have an app that requires user to LOG IN . Once user is logged in, I want to use Split View Controller to display data. The trick is, that Apple doesn't want me to push the SplitViewController , since they want it to be the Root View Controller. From my point of view, it is okay, but I need the user to log in first. Anybody knows any workaround except creating my own SplitViewController -like VC? You can still change the root view controller if you need to. You can initially set the root view controller to show your login screen, and then replace it with the split view controller.

In UISplitViewController, can't make showDetailViewController:sender: push onto detail navigationController

假如想象 提交于 2019-12-04 10:08:59
问题 In iOS 8, view controllers can now call showDetailViewController:sender: to have the system determine the proper view controller to present the detail view controller. In my app, I have a UISplitViewController, which contains two UINavigationControllers in its viewControllers array. The first UINavigationController contains my 'master' view, a subclass of UITableViewController. The second UINavigationController contains my 'detail' view. Since I'm trying to make this work universally, I'm

Using Multiple Detail Views with Split View Controller

北战南征 提交于 2019-12-04 08:16:52
As you know, a UISplitViewController has one root controller and one detail view controller only, but I want to use another detail view controller. When I select the list items from the root controller (popover controller), the selection should fire different detail views -- i.e., row1 fires detail view1, row2 fires detail view2 and a button item fires detail view3, etc. How can I achieve this? There's a project from Apple that covers exactly what you need. MultipleDetailViews This sample shows how you can use UISplitViewController to manage multiple detail views. The application uses a split

UISplitViewController - Multiple Detail View Controllers via storyboard segues

大憨熊 提交于 2019-12-04 07:03:49
I'm trying to do a project for the iPad in which I'd like to utilized the split view controller. I'll be having different detail view controllers for each of the cells in the master view controller. I saw one solution how to do this via storyboard segues in this site. He basically linked each of his UITableViewCell to different detail view controllers. But I'd like to know if this is a "stable" or a "good" way of doing this. I mean, is it any better or as stable as doing it programmatically? What would be the consequences of doing his method, if there are any? Here is the link to the solution

UISplitViewController display master view above detail in portrait orientation

不羁的心 提交于 2019-12-04 05:48:45
I have a UISplitViewController embedded in a UINavigationController with a UINavigationItem button to toggle the display of the master view in portrait orientation. I want to show the master view above the detail view when the view first loads in portrait orientation. Any similar examples I have found show the master and detail views splitting the screen in portrait orientation, but I need the detail view to be full screen in portrait with the master view covering the detail view when the UISplitViewController first loads (as if the master view has been swiped out from the left). Does anyone

UISplitViewController and orientation - iOS < 5.0

a 夏天 提交于 2019-12-04 03:18:05
问题 I am using a splitviewcontroller as the rootview of my application. I need to show the login and registration views as a modal view on top of the splitviewcontroller. When i try presenting login/reg view from the viewdidAppear method of splitViewController's rootview, it is not showing up. I tried presenting the login/reg view from the Appdelegate's didFinishLaunching method using the following code [self.window.rootViewController presentModalViewController:self.navController animated:NO];

Detect when both the master and detail view controller are on screen?

懵懂的女人 提交于 2019-12-04 01:37:25
I have implemented a UISplitViewController using a Universal Storyboard in Xcode 6. UISplitViewController is supported on iPhone running iOS 8 now, and by default only one view controller will be on screen at a time. I need to know when both the master and detail view controllers are both on screen (iPad). I need to remove the disclosure indicators from UITableViewCell s in the case both are on screen - only render them when only the master view controller is on screen (iPhone), just like the Settings app. I could simply detect the device and only add them if it's an iPhone, but that's not

how can i add splitview to my viewbased app in ipad coding

人走茶凉 提交于 2019-12-03 22:44:33
问题 I am Started my iPad app using View-Based application. in first two views i added table views. Now as the third view i want add splitView to the view, for this purpose i added splitview controller to my xib file. how can i write programming part. any use ful links or souce codes please. I am using view based class like as follows: - (void)viewDidLoad { [super viewDidLoad]; } - (void)viewDidUnload { [super viewDidUnload]; // Release any retained subviews of the main view. // e.g. self.myOutlet

UISplitViewController state restoration in iOS 8

…衆ロ難τιáo~ 提交于 2019-12-03 20:06:50
On iOS 8, UISplitViewController appears to save and restore the state of its subviews, for example, whether the master view is hidden or not. This is undesirable because my app should always show the master view in landscape and always hide it in portrait. If the user closes the app in landscape (landscape state is saved) and reopens it in portrait (landscape state is restored), then the UISplitViewController shows the master view in the wrong configuration. I still need to supply a restoration identifier to the UISplitViewController so that is subview controllers have their own state saved