uisplitviewcontroller

UINavigationController inside a UITabBarController inside a UISplitViewController presented modally on iPhone

女生的网名这么多〃 提交于 2019-11-29 01:17:06
问题 I'm having a UISplitViewController that contains a UITabBarController as master view. This UITabBarController contains a UINavigationController. The detail view contains a UINavigationController as well. On the iPad this works as expected. The show detail segue presents the imageview within the navigation controller on the detail view. On the iPhone on the other hand I expected that the show detail segue pushes the detail view on the stack of the navigation controller of the master view. But

UiSplitViewController doesn't autorotate

两盒软妹~` 提交于 2019-11-29 00:14:55
I have recently run into a problem. My iPad app is somehow preventing the iPad from auto-rotating. My app loads a UISplitView with both of the view controllers returning YES for shouldAutorotateToInterfaceOrientation:. I have set up my info.plist to include the "Supported interface orientations" key with all four orientations. When I run the app, however, rotating the device does not rotate the splitView (even though I am receiving UIDeviceOrientationDidChangeNotification). In addition, when I exit my app in a different orientation that it started in the iPad home screen doesn't autorotate to

Dismissing iPad UIPopoverController when BarButtonItem is pushed while it's open

坚强是说给别人听的谎言 提交于 2019-11-28 20:48:24
Using a split view on the iPad, I have the following code: - (void) splitViewController:(UISplitViewController *)svc willHideViewController:(UIViewController *)aViewController withBarButtonItem:(UIBarButtonItem *)barButtonItem forPopoverController:(UIPopoverController *)pc { barButtonItem.title = @"Categories"; NSMutableArray *items = [[toolbar items] mutableCopy]; [items insertObject:barButtonItem atIndex:0]; [toolbar setItems:items animated:YES]; [items release]; self.popoverController = pc; } This works well to show the popover when the button is pressed. However, I'd also like to have the

UISplitviewcontroller not as a rootview controller

你离开我真会死。 提交于 2019-11-28 18:57:12
I am building my first iPad application. And one of my requirements is to deal with UISplitviewcontroller and UINavigationController. our proposed view hierarchy is (LoginView) ->UINavigationView(LandingView + CollectionView)->UISplitViewcontroller( DetailsView). Our app supports only landscape mode I am referring this SO Question ( and GILT app as well), as a newbi its hard for me to get it done based on that description. So my questions are 1) How can I achieve same thing,if somebody can give small code snippets or reference to tutorial 2) As per Apples HIG, UISplitviewcontroller should be

Open UISplitViewController to Master View rather than Detail

被刻印的时光 ゝ 提交于 2019-11-28 17:04:33
I have a split-view interface with a target iPhone 6 application. On the first launch of the application, it opens to the Detail View; I would like it to open to the Master View. I have tried: self.splitViewController?.preferredDisplayMode = UISplitViewControllerDisplayMode.PrimaryOverlay Which was suggested elsewhere (Prior StackOverFlow Question) but it doesn't seem to do anything, and does not open the Master view on launch. I also tried to add the following line to my AppDelegate: splitViewController:collapseSecondaryViewController:ontoPrimaryViewController: But despite returning true or

Hiding the master view controller with UISplitViewController in iOS8

孤街醉人 提交于 2019-11-28 16:49:59
I have an iOS7 application, which was based on the Xcode master-detail template, that I am porting to iOS8. One area that has changed a lot is the UISplitViewController . When in portrait mode, if the user taps on the detail view controller, the master view controller is dismissed: I would also like to be able to programmatically hide the master view controller if the user taps on a row. In iOS 7, the master view controller was displayed as a pop-over, and could be hidden as follows: [self.masterPopoverController dismissPopoverAnimated:YES]; With iOS 8, the master is no longer a popover, so

UISplitViewController programmatically without nib/xib

亡梦爱人 提交于 2019-11-28 15:43:20
I usually create my projects without IB-stuff. The first thing I do is to strip off all references to xibs, outlets updated plist, etc and so forth. No problems, works great (in my world)! Now, I just installed 3.2 and tried to develop my first iPad app. Following same procedure as before, I created a UISplitView-based application project and stripped off all IB-stuff. Also, I followed the section in Apple's reference docs: Creating a Split View Controller Programmatically , but nevertheless, the Master-view is never shown, only the Detail-view is (no matter what the orientation is). I really

How to use a UISplitViewController as a Modal View Controller?

有些话、适合烂在心里 提交于 2019-11-28 10:17:54
I am trying to display a UISplitViewController presenting it as a Modal View Controller in my iPad app. I manage to have it display, but for some reason there is a gap to the left of the modal view the size of a Status Bar which is also preserved when the orientation is changed. Does anybody know why this is happening? Or if this is even possible? Maybe I'm just digging myself a huge hole. The stock UISplitViewController was designed for use as the root view controller only. Presenting one modally goes against the Apple Human Interface Guidelines and has a high probability of getting rejected

Storyboard, UIViewController and UISplitViewController

…衆ロ難τιáo~ 提交于 2019-11-28 09:50:01
Trying to make storyboard based application for iPad. In it I need to transition from start screen (UIViewController) to main screen (UISplitViewController) and then to full-screen view (again UIViewController). I saw a number of discussions on the web (at least several - on stackoverflow), stating that UISplitViewController can't be used in Storyboard based application any other way than being RootViewController. Some threads contain workarounds and there's also alternative splitview ( https://github.com/mattgemmell/MGSplitViewController ) to cope with this. But what I can't understand is why

Master Table Application

﹥>﹥吖頭↗ 提交于 2019-11-28 09:39:21
问题 I am using a basic iPad Master Table Application that uses portrait orientation only. I wish to stop the masterviewcontroller from appearing when you swipe right (making accessible by only the button). The solution is probably very simple but unfortunately I am a self taught newbie. 回答1: This is a new feature of UISplitViewController that was introduced in iOS 5.1. In order to disable this feature, they also implemented a new property called presentsWithGesture to turn it on and off. Apple