uisplitviewcontroller

Sometimes willHideViewController from UISplitViewControllerDelegate is not called

我与影子孤独终老i 提交于 2019-12-05 12:18:30
I have a problem. My app is a tab bar controller and its first view controller is a split view controller. This seems to be not ok for Apple because documents say a split voew controller must be the root, so perhaps that is the reason of my problems. The problem is that sometimes, willHideViewController from UISplitViewControllerDelegate is not called, so, for this reason, the upper/left button sometimes is not created, which is anoying. I realised, to reproduce this error, try several times this: -Landscape mode. -Select a tab different to split view controller tap. -Move the iPad to portrait

UISplitViewController Cannot Change the Master View Controller?

老子叫甜甜 提交于 2019-12-05 08:13:39
I am trying to change the master view controller (that appears in the popover in portrait, and on the left side in landscape) in a UISplitViewController. I'd like to switch between the master view controller being one of two different UIViewControllers (depending on an action taken elsewhere in my application). I am using the following: mySplitViewController.viewControllers = [NSArray arrayWithObjects:newMasterController, detailController, nil]; This correctly changes the master viewcontroller as you would expect in landscape mode. However it does not seem to change the viewcontroller used for

Why splitViewController:collapseSecondaryViewController:ontoPrimaryViewController: is not called on iPhone 6 Plus?

白昼怎懂夜的黑 提交于 2019-12-05 06:37:35
I implemented subclass of UISplitViewController in my app for both: iPhone and iPad . Method mentioned in title is called when I rotate device from Landscape to Portrait orientation. It works really nice unless I run the app on iPhone 6 Plus. Why this method is not called there? What to do to make this method work? When I start the app on iPhone 6 Plus everything is fine in both orientations. But the problem is when I rotate iPhone 6 Plus from Landscape to Portrait . My navigation controller is not gonna work as it is expected. This is what I mean: iPhone 5s Portrait iPhone 5s Portrait when I

Hiding UISplitViewController overlay in portrait

巧了我就是萌 提交于 2019-12-05 05:13:14
In adopting the new UISplitViewController I'm trying to make a change a default behaviour that occurs when using the UISplitViewControllerDisplayModeAutomatic mode. When working in portrait I want the primary overlay to hide when the user triggers a push to the detail side. By default the overlay remains onscreen until the user taps over on the detail side. I've tried using the following with the delegate: - (BOOL)splitViewController:(UISplitViewController *)splitViewController showDetailViewController:(UIViewController *)vc sender:(id)sender { if (splitViewController.displayMode ==

prefersStatusBarHidden isn't getting called

风流意气都作罢 提交于 2019-12-05 02:29:20
问题 I have a standard Master-Detail Application, and I'm trying to conditionally show/hide the status bar. Overriding prefersStatusBarHidden() in MasterViewController does nothing. It never even gets called. override func prefersStatusBarHidden() -> Bool { return true } Setting UIViewControllerBasedStatusBarAppearance in Info.plist doesn't help, presumably since YES is already the default value. Calling setNeedsStatusBarAppearanceUpdate() doesn't help either. I am targeting iOS 9. 回答1: There is a

UISplitViewController state restoration in iOS 8

筅森魡賤 提交于 2019-12-05 02:15:29
问题 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

UINavigationController + UITableView + UISearchBar + UISplitViewController

﹥>﹥吖頭↗ 提交于 2019-12-04 20:43:47
I have an annoying problem. I have an UINavigationController with an UITableView in the Master (Left) pane of my UISplitViewController. When I do normal operations, things push on on to the navigation controller fine. alt text http://files.droplr.com/files/8851942/WDO5y.working.jpg However, when I do a search and push things on, it's like it doesn't account for the space the navigation bar needs. It pushed the new controller on at the very top, then puts the navbar on, overlapping the content! alt text http://files.droplr.com/files/8851942/WDRem.search.jpg I should add it works fine when doing

add Toolbar above UITableView for use in UISplitViewController detail view

戏子无情 提交于 2019-12-04 19:19:13
I want to use a table view as the detail pane in my UISplitViewController. How do I put the toolbar at the top? I want to be able to add bar button items in the same way as my non-table detail views. Thanks. My frustration with this problem lay in trying to use the UITableViewController class, which does not allow you to add other UI elements like a toolbar. I solved it by creating a UIViewController object and adding the toolbar and table view to its nib individually. I then had the ViewController implement the table view's delegate and data source methods. Works great. common paradigm is

Presenting a modal view controller over only one half of a split view controller

核能气质少年 提交于 2019-12-04 19:10:31
I'm adapting an existing iPhone app to run on the iPad. In the iPhone version, when the user tapped a toolbar button, I would present a modal view controller with a modalTransitionStyle of UIModalTransitionStyleFlipHorizontal , which made a really nice "card-flipping" animation. The iPad interface is based on a split view ( MGSplitViewController , actually). The toolbar button is on the detail pane, so when I present the modal view controller, it takes up the entire screen and the flip transition makes no sense. To get the right user interaction, I'd like the modal controller to appear and

UIViewController and UISplitViewController in UITabBarController shouldAutorotateToInterfaceOrientation

老子叫甜甜 提交于 2019-12-04 14:15:42
i have some Problems with my iPad Code. I have a UITabBarController which holds some UIViewController and a UISplitViewController. The problem is that the UIViewController and even the UISplitViewController dont recognize orientation Changes correctly. i have set shouldAutorotateToInterfaceOrientation on my TabBarController and all UIViewControllers but i realized that only willRotateToInterfaceOrientation in the Top moast ViewController will fire which is my TabBarController. If i remove shouldAutorotateToInterfaceOrientation from my TabBarController willRotateToInterfaceOrientation from my