uisplitviewcontroller

How to inform the parent viewcontroller about the changed screen orientation in the modal view controller?

心不动则不痛 提交于 2019-12-02 02:22:36
I am presenting a modal view controller above a UISplitViewController while being in Portrait mode. Now I rotate the iPad to the Landscape mode and dismiss the modal view controller. It seems that UISplitViewController didn't receive the notification about the changed orientation: The 1st view of the split view controller is hidden, and the view of the 2nd is not occupying the whole screen size. If I rotate again back and forth, the split view controller is displayed normally again. Moreover, the problem occurs only with the iOS Simulator 5.0 (or the device running iOS5) but not with the 4.3.

How to create a segue from UIViewController to a UISplitViewController

跟風遠走 提交于 2019-12-02 01:02:39
Here's my setup for an iPad app. I created a new project using the Single View Application with UIStoryboard . XCode created the main UIViewController as the entry point. In the view I placed a toolbar with a button. I then insterted a UISplitViewController to the storboard. What I want is from the toolbar to have a button that will load the split view with master/detail tables. I tried to click on the button and drag to the splitviewcontroller, which created a segue, but every combination I created failed to run and crashed. My toolbar will have many other buttons which will load other views.

How to create a tablet UI with multiple ContentPages on one screen at the same time with Xamarin.Forms?

北城以北 提交于 2019-12-01 21:59:25
I want to design a UI for tablets ( Android & iOS ) with Xamarin.Forms where I want to have multiple ContentPages on one screen. I know how to achieve this for Android by using Fragments (afaik for iOS it's UISplitViewController ). How can I achieve this with Xamarin.Forms ? P.s. I definitely don't want a TabbedPage ! As far as I know you can't put multiple ContentPage items on the screen, at least not within the out-of-the-box Xamarin.Forms. You can, however, put multiple ContentView items on the screen and you can reuse the ContentView items in stand-alone pages as well. Essentially you can

How can we push UISplitVIewController to a UINavigationController

纵饮孤独 提交于 2019-12-01 17:59:35
Is it possible to push SplitViewController on Navigation Controller? I am getting this error : Split View Controllers cannot be pushed to a Navigation Controller <UINavigationController: 0x9618830>. Thank you. This is because Apple doesn't want you to push split view controllers into navigation controllers. Their guidelines say that if you use a UISplitViewController, it has to be visible at all times in your app, except from overlaying it with modal view controllers. I did manage to put a splitview controller as an item in a tab bar controller 来源: https://stackoverflow.com/questions/6855454

UISplitViewController and orientation - iOS < 5.0

烂漫一生 提交于 2019-12-01 17:31:53
I am using a splitviewcontroller as the rootview of my application. I need to show the login and registration views as a modal view on top of the splitviewcontroller. When i try presenting login/reg view from the viewdidAppear method of splitViewController's rootview, it is not showing up. I tried presenting the login/reg view from the Appdelegate's didFinishLaunching method using the following code [self.window.rootViewController presentModalViewController:self.navController animated:NO]; and it works. My problem is, the application supports both the landscape orientations, but when i run it

Swift: how to detect if UISplitViewController is currently showing 1 or 2 controllers?

六眼飞鱼酱① 提交于 2019-12-01 16:56:47
How can I detect if the UISplitViewController is currently just showing 1 view controller or it's in dual-pane with 2 views controllers shown side-by-side? The split view controller reflects the actual display mode in the displayMode property: AllVisible : The primary and secondary UIViewControllers are displayed side-by-side. PrimaryHidden : The primary UISplitViewController is hidden. PrimaryOverlay : The primary UISplitViewController overlays the secondary, which is partially visible. When the isCollapsed property is true , the value of displayMode property is ignored. A collapsed split

Set up a basic split-view-based application

限于喜欢 提交于 2019-12-01 13:16:47
I am trying to create the base for a split-view-based app, because over the last couple days, I have spent awhile looking at and trying tutorials that did not work, were incomplete, or were out of date. What are the steps I should follow, and after I have the basics set up: How do I change the name of the button on the toolbar? I want to include a popover menu; how do I change the name at the top of that menu? BloonsTowerDefence This tutorial is intended for beginners. If you have been coding in Objective-c for a while you probably won't learn anything here. After this tutorial you will have a

Set up a basic split-view-based application

坚强是说给别人听的谎言 提交于 2019-12-01 12:43:50
问题 I am trying to create the base for a split-view-based app, because over the last couple days, I have spent awhile looking at and trying tutorials that did not work, were incomplete, or were out of date. What are the steps I should follow, and after I have the basics set up: How do I change the name of the button on the toolbar? I want to include a popover menu; how do I change the name at the top of that menu? 回答1: This tutorial is intended for beginners. If you have been coding in Objective

Hide gray box in UiSplitView when animating to PrimaryHidden from PrimaryOverlay in iPhone

此生再无相见时 提交于 2019-12-01 12:11:58
There are numerous answers here that describe how to programmatically animate the primary split view: let addButton = self.splitViewController!.displayModeButtonItem() UIApplication.sharedApplication().sendAction(addButton.action, to: addButton.target, from: nil, forEvent: nil) On an iPad this works wonderfully! But on an iPhone there is this annoying gray box that trails the primary view. By wrapping that action in a UIView.animate block, its possible to see it quite clearly: The box is hardly visible when you actually dismiss the primary view by tapping over the detail view, but is really

Resize master and detail view controllers in a split view controller?

北战南征 提交于 2019-12-01 05:17:48
I'm working in Xcode 4.2 and am developing an app where I want the menu screen to use a Split View. Really, all I need the Split View Controller for is to split some of the menu options into a left pane and right pane. I want to be able to set custom sizes for the master and detail view controllers, but nothing seems to be working for me. I've tried updating the frame sizes for each view controller with code like: [self.view setFrame:CGRectMake(0, 0, 768, 502)]; in the viewDidLoad functions, but that doesn't seem to affect anything. Is there a way to set custom sizes for the master and detail