uisplitviewcontroller

SplitViewController detailViewComtroller's NavigationBar color changes to pink grayish

泪湿孤枕 提交于 2019-12-10 12:34:35
问题 When i change detailViewcontroller in splitviewcontroller its navigation bar color changes to Pinkish gray color. Not able to understand why happening this. Please help... 回答1: If you customise your navigation bar then your view will disappear into set your main view (parent) view color -(void)viewWillAppear:(BOOL)animated{ [super viewWillAppear:animated]; //Set Your color of navigation bar. } -(void)viewWillDisappear:(BOOL)animated{ [super viewWillDisappear:animated]; //Set your color of

SplitView - reload data in master tableView based on detail changed in swift

左心房为你撑大大i 提交于 2019-12-10 11:04:40
问题 I create splitView with tableView in master View and tableView with static cells in two details view (see on picture). App Structure Names of view controllers are: DocsTableViewController - master view (on the left) DocDetailTableViewController - detail view (on the top right) DocEditTableViewControler - second detail view (on the bottom right) DocsTVC is list of doctors, DocDetailTVC is detail of doctor user selected in DocsTVC and on DocEditTVC user can edit data of doctor showed in

iOS 6.0: UISplitViewController Popover broken or design changed by Apple?

♀尐吖头ヾ 提交于 2019-12-10 08:07:25
问题 I have created a project with master detail template in Xcode 4.5 and deployment target 5.1. Could someone please help me with following UISplitViewController issues please. In portrait mode, master view fade in from the left. It doesn't appear as Popover view as it used in iOS 5.0 in portrait mode. Please see attached images. How to get the master view as popover? Is there anyway I can hide master view in Landscap mode? Thanks. 回答1: This has been the default action since 5.1. From the iOS 6

Problems with modal view launched over a split view controller

一笑奈何 提交于 2019-12-10 07:14:14
问题 I have created a split view application that begins with a modal view splash page. The problem is that the modal view always launches in portrait mode, even if the ipad is in landscape. If I rotate the ipad a couple of times, it rotates appropriately. I have set UIInterfaceOrientation in my Info.plist, but it doesn't have any impace. in didFinishLaunchingWithOptions , I am using the following code ... [self.window addSubview:splitViewController.view]; SplashViewController *modalView = [

Sometimes willHideViewController from UISplitViewControllerDelegate is not called

南笙酒味 提交于 2019-12-10 06:51:18
问题 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

UISplitViewController display master view above detail in portrait orientation

拈花ヽ惹草 提交于 2019-12-09 18:13:34
问题 I have a UISplitViewController embedded in a UINavigationController with a UINavigationItem button to toggle the display of the master view in portrait orientation. I want to show the master view above the detail view when the view first loads in portrait orientation. Any similar examples I have found show the master and detail views splitting the screen in portrait orientation, but I need the detail view to be full screen in portrait with the master view covering the detail view when the

Use UITabBarViewController in portrait but UISplitViewController in landscape in a Universal app

你说的曾经没有我的故事 提交于 2019-12-09 12:56:11
问题 I want to use a UITabBarViewController when on iPhone in portrait and a UISplitViewController when on iPhone 6/6+ in landscape or iPad in either orientation. When on iPad or iPhone 6/6+ landscape, the tab bar items present themselves as UITableViewCells in the topmost view controller. I would really like for the calling object to not have to worry about device or orientation, but instead pass as input the view controllers that are in the tab bar on iPhone in portrait and in the root view

How to make the landscape view look same as the portraitView while using a splitViewController?

↘锁芯ラ 提交于 2019-12-08 13:37:39
问题 What I meant is, When we use a UISplitViewController project In portrait mode, whole window will be covered by the view and a popoverController will be presented to navigate to other views. In landscape mode, 40% of the window will be covered by a tableView using which we can change the view/page. And navigation button as well as popoverController will be hidden. What I want is, Even in landscape mode, it should be like portrait mode. No tablewView should be there. Whole window should be

getting the MasterViewController from the DetailViewController in a UISplitViewController app

风格不统一 提交于 2019-12-08 07:16:48
问题 I have a standard SplitViewController app in Swift in Xcode 6.1.1. It would be very convenient for my DetailViewController have a pointer to my MasterViewController. (I don't need to send notifications, but I need to pull the current statemachine from my MVC) My thought was that I would use my DetailViewController viewDidLoad method to grab the MasterViewController from the SplitViewController. In my DetailViewController:viewDidLoad I have (snip) let tVC = self.splitViewController?

Programmatically show / hide master view in UISplitViewController

孤街醉人 提交于 2019-12-08 06:46:21
问题 I have an app that uses a UISplitViewController. When in Landscape orientation, we sometimes want to show the master view all the time and sometimes want it to auto hide as it does in portrait orientation. Currently this setting can be tweaked in app. This all works well, except for one thing. When I change the setting, I'd like the auto-hide setting to take effect immediately, not just the next time I rotate the device (i.e. when - splitViewController:shouldHideViewController:inOrientation: