uisplitviewcontroller

UISplitViewController Rotation Master Master on iPhone 6 Plus

浪子不回头ぞ 提交于 2019-12-24 02:36:04
问题 So if you create a UISplitViewController with 'MasterView' and 'DetailView' setup like this in the 'MasterView' in portrait on the iPhone 6 Plus you push/show 'MasterView2' by pressing the item button and then you rotate the device I would expect to see this - 'MasterView2' | 'DetailView' but instead I get 'MasterView' | 'MasterView2' How should this be setup so on rotating the iPhone 6 Plus I get the expected 'MasterView2' | 'DetailView'? 回答1: for anyone interested here is how I solved the

Modal disappearing after rotating UISplitViewController

雨燕双飞 提交于 2019-12-23 12:12:26
问题 I have a strange problem UISplitViewController. I have a button in my master view controller which opens a modal view when tapped (using a simple storyboard segue). But the modal view disappears when I rotate the iPad, but only when rotating from portrait to landscape. My master view controller is hidden in portrait, like in the native Mail application. If I'm in landscape (when the master is always visible) and open my modal, rotating the device works correctly and my modal stays on screen.

Programmatically dismiss detail view controller in collapsed display?

房东的猫 提交于 2019-12-23 08:08:21
问题 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 controller: [self showDetailViewController:[[UINavigationController alloc] initWithRootViewController:detail] sender:self]; I also tried these 3 methods respectively, but none of them worked: if (self.splitViewController.collapsed) { UIBarButtonItem

Programmatically dismiss detail view controller in collapsed display?

允我心安 提交于 2019-12-23 08:08:12
问题 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 controller: [self showDetailViewController:[[UINavigationController alloc] initWithRootViewController:detail] sender:self]; I also tried these 3 methods respectively, but none of them worked: if (self.splitViewController.collapsed) { UIBarButtonItem

UISplitView: Why are there multiple DetailController-Instances? (new one on each segue)

▼魔方 西西 提交于 2019-12-23 05:09:05
问题 I've noticed that in a Master-Detail UISplitView iPhone app, I dont have one single instance of my DetailController and getting that reused by setting new content, instead it seems that on each segue/everytime I navigate to the Detail View, a new instance of DetailController gets created by the segue and has to be filled with content? Why is that? Through debugging I can see that there is at least one DetailController instance staying alive all the time but not used on iPhone, and everytime I

Require UISplitViewController to lazy load multiple view controllers for detail view controller

荒凉一梦 提交于 2019-12-23 03:56:24
问题 Well, might not be clear with the title. I have pulled this right out of the MultipleDetailView sample code from Apple. Every time the user selects a row from the table in the pop over, detailViewController is allocated the FirstDetailViewController and SecondDetailViewController again. Instead of allocating and initializing the view controller over and over, I want to assign the existing and already allocated and initialized view controller if existing to the detailViewController on the

MGSplitViewController using Storyboards

丶灬走出姿态 提交于 2019-12-23 03:31:42
问题 I have been working on this for some time now and just cant quite get it to work... Has anyone implemented a MGSplitViewController app using storyboards in iOS 5? I just cant get anything to show up like in the example project and was wondering if there were any tutorials or just steps to getting this to work... Thanks 回答1: iOS 5 allows you to custom create View Controller containers . Refer to "Implementing UIViewController Containment". They have a sample project demo, but not sure if they

Keeping MasterTableView row selected in SplitViewController

瘦欲@ 提交于 2019-12-23 02:32:37
问题 In my SplitViewController, based on an action in the DetailViewController, I update the MasterViewController row using NSNotificationCenter essentially like this: Keeping MasterViewController and DetailViewController in sync The problem is, once an update to the row of the MasterViewController is done, the row is no longer selected. When I look at Apple's iPad apps using splitViews, like the Note application, a row is always selected. I want to do the same thing so everything stays in sync

Keeping MasterViewController and DetailViewController in sync

不羁岁月 提交于 2019-12-23 01:53:28
问题 I am writing a simple iPad appication using Xcode 4 and iOS5. I am using a UISplitViewController to manage a master and detail view. Everything is working fine going from master to detail. I can select an item from the list and through the delegate it updates the detail view. I want to be able to delete an item using a button on the detail view. This is very simple to do on the detail view. However, I cannot seem to figure out how to change the master view to reflect the fact that an item has

Split View Controller: How to connect Master View Controller to Detail View Controller?

被刻印的时光 ゝ 提交于 2019-12-23 01:45:18
问题 (Xcode6-beta3, Swift, iOS8, iPad) In an iPad split-view controller, how do I link the Master View Controller to the Detail View Controller? In other words, when the user taps on an item on the left, how do I change the view on the right? I know that in didSelectRowAtIndexPath, I need to call a method... but how do I call a method in the Detail View Controller from the Master View Controller? Example Imagine an app to display information on different types of cheeses. We begin by dragging a