uisplitviewcontroller

Correctly present conditional login screen at app startup with storyboards and split view controllers?

試著忘記壹切 提交于 2019-12-03 16:47:38
This seems like it should be simple, but it is proving to have a lot of challenging nuances - and I haven't found an answer elsewhere on Stack Overflow that answers this fully, clearly, and simply. In a nutshell - I have an iPad application that uses storyboards to layout the application flow, and a split view controller as the primary root view controller. This application checks at startup if there are login credentials stored, and if they are it jumps straight to the UI, and if not it presents a full-screen login page. The challenge though - where should this conditional check be made, and

Use UITabBarViewController in portrait but UISplitViewController in landscape in a Universal app

血红的双手。 提交于 2019-12-03 16:16:15
I want to use a UITabBarViewController when on iPhone in portrait and a UISplitViewController when on iPhone 6/6+ in landscape or iPad in either orientation. When on iPad or iPhone 6/6+ landscape, the tab bar items present themselves as UITableViewCells in the topmost view controller. I would really like for the calling object to not have to worry about device or orientation, but instead pass as input the view controllers that are in the tab bar on iPhone in portrait and in the root view controller on iPad and iPhone 6/6+ in landscape. Here's a visual representation of what I mean: I think it

UISplitViewController in portrait on iPhone always show master and detail in iOS 8

你说的曾经没有我的故事 提交于 2019-12-03 13:49:38
问题 UISplitViewController in portrait on iPhone always show master and detail in iOS 8 I try to subclass UISplitViewController and config it to show master and detail at the same time. but no any effect. class APPSplitViewController: UISplitViewController, UISplitViewControllerDelegate { override func viewDidLoad() { super.viewDidLoad() preferredDisplayMode = UISplitViewControllerDisplayMode.AllVisible maximumPrimaryColumnWidth = 32.0 minimumPrimaryColumnWidth = 32.0 } override func

iOS: How to check if UIViewControllers are unloading? (Swift)

你。 提交于 2019-12-03 13:33:58
问题 I'm using a UISplitViewController every time I click on a row in the Master VC I can see that viewDidLoad() is run in the Detail VC. Does this mean i'm creating a new instance of Detail VC each row click? If so, how can I check that the Detail VC are unloading correctly and that i'm not just creating more and more new Detail VCs? I'm a bit lost here in Swift. Previously I could NSLog in dealloc() and see the UIViewController correctly unloading. I here Swift has a deinit function but this is

iPad: Merge concept of SplitViewController and NavigationController in RootView?

假装没事ソ 提交于 2019-12-03 11:19:54
问题 I'm having trouble merging the two concepts of using a SplitViewController in my main view and having the "RootView" controller that controls the left panes popup/sidebar table view. I want to have the left "RootView" act as a navigation menu, but how do I do this when the RootView is tied through MainWindow.xib into the left pane of the SplitView? Basically, I want the left navigation to work just like the built-in email applications folder drilldown navigation. Is there an example iPad

How to use a UISplitViewController in Swift

倖福魔咒の 提交于 2019-12-03 06:53:26
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 collapseDetailViewController: Bool = false override func viewDidLoad() { super.viewDidLoad()

Good iPad SplitViewController tutorial? [closed]

余生长醉 提交于 2019-12-03 05:11:06
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . 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 split-view application from scratch as I want to know how it

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

可紊 提交于 2019-12-03 04:27:22
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 (UIInterfaceOrientationIsPortrait(self.interfaceOrientation)) { if ([[[AppDelegate sharedAppDelegate] splitViewController] respondsToSelector:[[[AppDelegate sharedAppDelegate] btnMenu] action]]) { [[[AppDelegate sharedAppDelegate] splitViewController] performSelector:[[[AppDelegate sharedAppDelegate] btnMenu] action]]; } } But in iOS 5.1 (with the new type of master popover) the behaviour seems to be random

UISplitViewController in portrait on iPhone always show master and detail in iOS 8

六眼飞鱼酱① 提交于 2019-12-03 03:50:58
UISplitViewController in portrait on iPhone always show master and detail in iOS 8 I try to subclass UISplitViewController and config it to show master and detail at the same time. but no any effect. class APPSplitViewController: UISplitViewController, UISplitViewControllerDelegate { override func viewDidLoad() { super.viewDidLoad() preferredDisplayMode = UISplitViewControllerDisplayMode.AllVisible maximumPrimaryColumnWidth = 32.0 minimumPrimaryColumnWidth = 32.0 } override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning() } } How to? UISplitViewController use show side-by-side

iOS: How to check if UIViewControllers are unloading? (Swift)

不羁的心 提交于 2019-12-03 02:55:44
I'm using a UISplitViewController every time I click on a row in the Master VC I can see that viewDidLoad() is run in the Detail VC. Does this mean i'm creating a new instance of Detail VC each row click? If so, how can I check that the Detail VC are unloading correctly and that i'm not just creating more and more new Detail VCs? I'm a bit lost here in Swift. Previously I could NSLog in dealloc() and see the UIViewController correctly unloading. I here Swift has a deinit function but this is never called: deinit { println("\(__FILE__.lastPathComponent)) : \(__FUNCTION__)") NSNotificationCenter