uisplitviewcontroller

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

落花浮王杯 提交于 2019-12-07 03:59:45
问题 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

Hiding UISplitViewController overlay in portrait

荒凉一梦 提交于 2019-12-07 01:26:08
问题 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

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

对着背影说爱祢 提交于 2019-12-07 00:19:29
(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 split-view controller onto the storyboard. A table of items in the master view on the left is set up to

Problem after dismissing a modal view used in conjunction with a uisplitviewcontroller

孤街醉人 提交于 2019-12-06 16:28:48
I'm having a hard time understanding why the following is happening (and how to fix it). I've created an application using the split-view based application. I've added a UiBarButtonItem called showTheModal which calls this method found in RootViewController.m: - (IBAction)showTheModal:(id)sender { theModalController.modalPresentationStyle = UIModalPresentationFullScreen; theModalController.modalTransitionStyle = UIModalTransitionStyleCrossDissolve; [self presentModalViewController:theModalController animated:YES]; if ([detailViewController popoverController] != nil) [[detailViewController

UINavigationController + UITableView + UISearchBar + UISplitViewController

对着背影说爱祢 提交于 2019-12-06 15:28:34
问题 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

Keeping MasterTableView row selected in SplitViewController

拟墨画扇 提交于 2019-12-06 14:56:39
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 between my two tables. I can manually just setSelected:YES animated:NO on the row since I have the

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

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-06 14:37:50
问题 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

Migrating a tab bar-based iPhone project to iPad

谁都会走 提交于 2019-12-06 12:33:36
Like many other developers out there, I've created iPhone projects that use a UITabBarController as the root controller, with the tab views using UINavigationController s to drill down from lists to detail views. And like many other developers out there, I need to migrate these apps to the iPad so they take advantage of the bigger screen (and more importantly, not forcing the user to use the ugly "doubling" visualization for iPhone-only apps). Apple created the UISplitViewController for this exact scenario... seemingly. I say seemingly because although I see it used in Settings, iPod, iTunes,

UISplitViewController willHideViewController/willShowViewController not called after forcing detail view to be hidden

一笑奈何 提交于 2019-12-06 10:57:25
I have an iPad App which uses a UISplitViewController as the root controller, I have set up the delegate and I am using a UINavigationController for the DetailView and it seems to work normally. I want the MasterViewContoller to always be hidden (on all rotations) when a particular viewcontroller is displayed in the DetailView Section. I can do this using the shouldHideViewController method on the UISplitViewController Delegate. However if I do, then when I change the ViewController in the DetailView Section to another the MasterView is displayed but neither willHideViewController

UISplitViewController problems with IOS 5.1

拟墨画扇 提交于 2019-12-06 10:34:36
I have a problem, I am programming with Monotouch 5.2.8 for IOS 5.1. But since the IOS 5.1 update my iPad configs the UISplitViewController so it is docked on the left side instead of presented as a popover. It works with IOS 5.0 but in 5.1 i got this problem. Here is the source code for my UISplitViewController: splitViewController = new UISplitViewController (); splitViewController.WeakDelegate = detailViewController; splitViewController.ViewControllers = new UIViewController[] { navigationController, detailViewController }; Dimitris Tavlikos From Apple's iOS 5.1 SDK release notes: In 5.1