uisplitviewcontroller

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

萝らか妹 提交于 2019-12-01 02:54:26
问题 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,

Achieve a Uniform UIBlurEffect in the Primary View of a UISplitView

妖精的绣舞 提交于 2019-11-30 23:57:12
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 *visualEffectView = [[UIVisualEffectView alloc] initWithEffect:blurEffect]; self.tableView.backgroundView =

How to add tab bar controllers to the root view of the split view controller application

帅比萌擦擦* 提交于 2019-11-30 23:10:15
I am very new to the iPad UISplitViewController . I need to add a tab bar containing 3 tabs at the bottom of the master view / left view. I have a different View Controller for each of the 3 tabs. I haven't found any other examples of Tab bars being used in split view based applications. Where do I insert a tab bar controller for displaying at the bottom of the the root view? How do I establish a connection so that when I select a table cell, the detailItem info gets displayed in the Detail View? Tab bar was added to the Root View in IB. Should I be adding it programmatically instead? you have

Draw a separator line in conjunction with Auto Layout

感情迁移 提交于 2019-11-30 22:10:31
I'm reimplementig some kind of UISplitViewController . Now I need to draw a separator line between the master and the detail view. Now I have some questions for this: Should the separator line be on the view controller itself or should it be a separate view? What about Auto Layout? Setting a frame is not allowed. I saw solutions for CALayer / CAShapeLayer , drawRect (CoreGraphics) or using the background color of an UIView / UILabel . The last one should cost too much performance according to the folks there. On the one side it is comfortable to draw the line in the UITableViewController

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

岁酱吖の 提交于 2019-11-30 21:28:13
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 view. (When I rotate the device to landscape and back to portrait, it gets its correct size back.)

UISplitViewController Hide/Unhide MasterView In Storyboard

好久不见. 提交于 2019-11-30 19:44:11
I have a simple iPad app with MasterviewController with a tableview and and a DetailViewController containing a UIWebView. Then i dragged and dropped a SplitViewController in my Storyboard, connected it with my Master and Detail controllers. In MasterViewController i am using the following: - (void) awakeFromNib { self.splitViewController.delegate = self; } - (BOOL) splitViewController:(UISplitViewController *)svc shouldHideViewController:(UIViewController *)vc inOrientation:(UIInterfaceOrientation)orientation { return NO; } It currently looks like the following: Everything is working great.

How to add tab bar controllers to the root view of the split view controller application

Deadly 提交于 2019-11-30 18:48:19
问题 I am very new to the iPad UISplitViewController . I need to add a tab bar containing 3 tabs at the bottom of the master view / left view. I have a different View Controller for each of the 3 tabs. I haven't found any other examples of Tab bars being used in split view based applications. Where do I insert a tab bar controller for displaying at the bottom of the the root view? How do I establish a connection so that when I select a table cell, the detailItem info gets displayed in the Detail

Draw a separator line in conjunction with Auto Layout

廉价感情. 提交于 2019-11-30 17:16:08
问题 I'm reimplementig some kind of UISplitViewController . Now I need to draw a separator line between the master and the detail view. Now I have some questions for this: Should the separator line be on the view controller itself or should it be a separate view? What about Auto Layout? Setting a frame is not allowed. I saw solutions for CALayer / CAShapeLayer , drawRect (CoreGraphics) or using the background color of an UIView / UILabel . The last one should cost too much performance according to

IOS8 SplitVC + TabBarController + NavigationController

萝らか妹 提交于 2019-11-30 15:39:46
I'm doing a universal App using size classes and I'm trying to use a SplitView with a TabBarController in the Master/Primary View. Before adding the splitView all worked fine, but now the App crashes (the reason depends on the hierarchy of the views). So I tried the same storyboard starting from Apple SplitView template and add a TabBarController on its Master/primary view... same problem. Hierarchy - Embedded master NavigationController in TabBarController: SplitVC (Master) > TabBarController > NavigationController > TableView SplitVC (Detail) > NavigationController > View Added this code in

Having a UINavigationController in the master view of a UISplitViewController in iOS 8

懵懂的女人 提交于 2019-11-30 10:32:19
问题 In my UISplitViewController, the master view is a UINavigationController containing a UITableViewController. Sometime, when the user selects an item in the table, I have to push another tableViewController over the existing table in the master view. In iOS 7, inside my first UITableViewController I just call [self.navigationController pushViewController:otherTableVC animated:YES]; In iOS 8: When the split view is collapsed, the otherTableVC becomes the detail View! Then after rotating the