uisplitviewcontroller

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

回眸只為那壹抹淺笑 提交于 2019-12-19 10:47:49
问题 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

Achieve a Uniform UIBlurEffect in the Primary View of a UISplitView

梦想的初衷 提交于 2019-12-19 04:19:48
问题 I'm using a stock UISplitViewController with out-of-the-box Master and Detail view controllers. In a storyboard, I've added a UIImageView to the Detail controller set to effectively fill the view with a single image. In the Master controller, I've used the following to blur the background of that controller: // In viewDidLoad self.tableView.backgroundColor = [UIColor clearColor]; UIBlurEffect *blurEffect = [UIBlurEffect effectWithStyle:UIBlurEffectStyleDark]; UIVisualEffectView

UISplitView new slide-in popover becomes fullscreen after memory warning in iOS 5.1

◇◆丶佛笑我妖孽 提交于 2019-12-19 03:20:09
问题 I'm quite new here. I have a problem with the new iOS 5.1 slide-in popover in UISplitView. (Before 5.1 the master view controller was presented in a popover, but now it simply slides in form the left.) When my device is in portrait mode and it receives a memory warning, the master view controller unloads; and when I press the toolbar button to slide in the master view, it loads again. However after the memory warning it is presented in fullscreen and not only the size of the original master

iOS 13 UISplitView Problems

天大地大妈咪最大 提交于 2019-12-18 16:54:10
问题 On iOS 13 Beta 5, I currently have problems with my UISplitView on iPhones. My app starts with the detailsview off my splitview not with my masterview (look at the picture) Does anyone know how i can fixed this problem under iOS 13? On iOS 12 everything works like a charm ☹️ Thx in advance Sebastian Edit: Sorry for the late answer I was on a short holiday trip without any internet :/ my Class looks like this: class MyClass : UITableViewController, UISplitViewControllerDelegate,

New UINavigationBar appearance in detail pane of UISplitViewController in iOS 13

回眸只為那壹抹淺笑 提交于 2019-12-18 12:57:10
问题 Under iOS 13, if you setup a scrollable root view controller (such as a UITableViewController) in a navigation controller and then put that navigation controller in the detail pane of a UISplitViewController, then the nav bar's background isn't visible when the scrollable content is at the top. You can see this by creating a new iOS project based on the Master/Detail template. Then modify the storyboard to use a UITableViewController inside the detail pane's nav controller. Put the device

Compiling against 5.1 SDK forces new UIPopoverController “slide in” presentation of popovers — how to disable?

蓝咒 提交于 2019-12-18 12:15:51
问题 Compiling my iPad app against the 5.1 SDK (release version) causes UIPopoverController to show itself using the new "slide in" from the left presentation. This completely breaks my popover presentation, which relied on having a "black" style header and a certain height. I've tried setting presentsWithGesture to NO , but that only seems to disable the swipe gesture, and doesn't stop the presentation style. This same app, without being recompiled, but running on iOS 5.1, uses the old popover

iOS - Split View Controller - How do I get a pointer (reference) to the Detail View Controller from inside the Master View Controller?

醉酒当歌 提交于 2019-12-18 11:03:20
问题 iOS - Split View Controller - How do I get a pointer (reference) to the Detail View Controller (the bigger right one) from inside the Master View Controller (the smaller left one)? My gut tell me the Main Split View Controller should have a reference to Detail View Controller and to my own Master View Controller, but I can't figure out how to get it. Any thoughts? 回答1: Split view controllers do have references to their master and detail view controllers, via the viewControllers property. In

TabBarController and SplitViewController

孤街醉人 提交于 2019-12-18 10:57:16
问题 i want my splitviewController to be displayed in within a TabBarController . Unfortunately, I firstly decided to just have a SplitViewController and chose apple's template. Now i am in the inconvenient position not knowing how to add it to a tab bar. I tried several stuff that was explained here on StackOverflow but the best result was a black screen with a tab bar below it :-( I am just struggling to find a nice and simple way. Code of my Appdelegate : - (BOOL)application:(UIApplication *

Orientation Problem while using insertSubview

让人想犯罪 __ 提交于 2019-12-18 07:25:29
问题 I get an orientation problem while using the following to code to display a view on top of a split view. [window addSubview:aSplitViewController.view]; [window insertSubview:aViewController.view aboveSubview:aSplitViewController.view]; the plain view has a couple of buttons and labels. So the problem I am facing is that the first view opens in landscape mode but the labels and buttons on the view are in portrait mode. UPDATE: Here is some code so if anyone wants to see more details... In my

Hiding the master view controller with UISplitViewController in iOS8

我的梦境 提交于 2019-12-17 22:07:29
问题 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