uisplitviewcontroller

UITableViewController auto-scrolling stops taking into account keyboard when shown from a UISplitViewController

你说的曾经没有我的故事 提交于 2019-12-12 10:51:53
问题 When you subclass UITableViewController , you normally get certain behaviors "for free". For example, when a text field in your table view becomes first responder, the view controller automatically scrolls itself to ensure the field is fully visible. However, when the table view controller is the detail view controller of a UISplitViewController , this auto-scrolling no longer takes into account the presence of the keyboard. The table view controller will still auto-scroll to keep the text

How to name a back button in UISplitViewController

流过昼夜 提交于 2019-12-12 10:36:37
问题 I have UITableViewController (its name is News) and UIViewController (its name is DetailViewController) and UISplitViewController . I want it to show a back button when I use an iPad in portrait orientation. I made the button but I cannot name it. I wrote following code detailController.navigationItem.leftBarButtonItem = self.splitViewController?.displayModeButtonItem() detailController.navigationItem.leftItemsSupplementBackButton = true detailController.navigationItem.leftBarButtonItem?

How should I present a UISearchController using a UISplitView adaptive user interface?

匆匆过客 提交于 2019-12-12 10:34:10
问题 Using a universal storyboard with an adaptive UISplitViewController user interface. I want to present a search controller on the primary (master) side, using the following code (from the master view controller): static NSString * const kCGISearchViewControllerID = @"SearchViewControllerID"; - (IBAction)searchButtonClicked:(UIBarButtonItem *)__unused sender { SearchViewController *searchResultsController = [self.storyboard instantiateViewControllerWithIdentifier:kCGISearchViewControllerID];

SplitViewController with a Login View Controller as the root

末鹿安然 提交于 2019-12-12 09:25:40
问题 So I've been researching on how to make a login view controller as the initial view controller instead of the splitview. Some of the answers I've seen would recommend a modal view to be loaded? I'm not sure how that is set up. eg. How to add a login view before a UISplitViewController iPad and How to implement SplitViewController on second level.? So do I add those on the loginviewcontroller class? Or where? Any advice is welcome. Thanks!! 回答1: I've done this by creating two storyboards: one

Adding a NEXT button to an iPad UISplitViewControl

戏子无情 提交于 2019-12-12 06:37:44
问题 Simple question (yeah right!). I want to add a "NEXT" button on the detail pages of my UISplitViewController for my iPad project. If clicked, it would be another way of advancing to the next page in the list of pages. As a bonus, I want to highlight the correct row that in the root view that corresponds with the new view you land on. Any general guidance and suggestions on where to go would be AWESOME! UPDATE: Thanks to Anna's Suggestion below, here is the code I used to pull all this

UISplitViewController and UINavigationController doesn't work properly with multiple storyboards

泪湿孤枕 提交于 2019-12-12 06:36:04
问题 I'm trying (for experiment) to work with multiple storyboards. The first storyboard (starts at startup) contains only one view controller that executes some code and download json data from a website. When finish the download task, the view controller (of first storyboard) set the entry Point of Second storyboard as root view controller after instantiating it. UIStoryboard *mainSB = [UIStoryboard storyboardWithName:@"SecondStoryboard" bundle:[NSBundle mainBundle]]; UITabBarController

UISplitView in UIViewController

穿精又带淫゛_ 提交于 2019-12-12 04:32:17
问题 Hi I am working With Ipad Application I want to Add UISplitView to UIViewController and it Should be in Programmatic approach Can Any one help me how to get out of this i have added split view to the UIWindow and Worked Fine ,But i need to add UISplitView to UIView Controller, when the User Taps a button in Main Screen it goes to detail View and the detail view should be UISplitView Thx in Advance 回答1: I would suggest MGSplitViewController. It has a similar API to the regular, but with many

Does a UISplitViewController's master view always have to be a UITableView?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-12 04:09:58
问题 I've used UISplitViewController several times before without problems (well, problems that I've fixed anyway ;-) However, I have always previously used a UITableView as the master view, as that's the obvious choice. Today I have need for something a little different, so I'm just providing a UIView. However, I'm getting the exception, *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[UITableViewController loadView] loaded the "MyViewController" nib

Custom UISplitViewController?

。_饼干妹妹 提交于 2019-12-12 04:09:19
问题 I want the effect of a UISplitViewController however I am not using the split view template. Is it relatively easy to achieve without the template? And with using normal UIViewController? What I want it a customary sized and positioned UITableView which then has a customary sized detail view which then of course goes into a popover and detail view when portrait. 回答1: Doing it without Interface Builder, you would create a UIViewController class. In the viewDidLoad method of that class, create

splitview poperver issues between ios5.0 and ios5.1

纵然是瞬间 提交于 2019-12-12 03:49:56
问题 I've researched just about every post I can find on this and have reached the point where I could use some help. My project is a universal app built using storyboards. the iPad version uses a split view controller. Master view relatioship is a navigation controller with a view controller. Detail view is a navigation controller with a view controller. Without realizing it I built and tested the app using iPad 5.1 simulator. Upon realizing that small detail and needing iOS 5.0 compatibility, I