uisplitviewcontroller

UISplitViewController detail-only inputAccessoryView

人盡茶涼 提交于 2020-01-02 03:36:08
问题 I am trying to imitate Apple's iMessage application in terms of the message input toolbar. Apple has a UIToolbar which is the input accessory view of a UITextView it contains, and also the inputAccessoryView of the actual view. That way, the toolbar is always present, and when the keyboard appears, it slides with the keyboard. On the iPad, they seem to have a UISplitViewController , and the toolbar is part of the detail view controller. Now, when I have the same set up, my detail view's input

iPad SplitView changes main navigation bar color

徘徊边缘 提交于 2020-01-01 11:57:51
问题 Weird problem: After rotating my app to portrait, picking the toolbar item and exposing the uipopovercontroller, if I rotate back to landscape, the UINavigationController on the right side (objectAtIndex:0 of the SplitView) changes the color of the navigation bar. I am not sure why. I have it set in Interface Builder to be barStyle = UIBarStyleBlackOpaque; It turns silver after it returns to landscape mode. This only happens if I rotate it to portrait, create the popover, and select something

UISplitViewController and complex view hierarchy

霸气de小男生 提交于 2019-12-30 03:14:10
问题 I'm doing an iPad tech demo and I'm running into a serious technical problem. I have an app concept that leverages UISplitViewController, but NOT as the primary controller for the entire app. The app flow could be described roughly as this: Home screen (UIViewController) List->Detail "Catalog" (UISplitViewController) Super Detail Screen (UIViewController but could conceivable also be a child of SplitView). The problem is in the flow between Home and Catalog. Once a UISplitViewController view

UiSplitViewController doesn't autorotate

廉价感情. 提交于 2019-12-29 04:54:11
问题 I have recently run into a problem. My iPad app is somehow preventing the iPad from auto-rotating. My app loads a UISplitView with both of the view controllers returning YES for shouldAutorotateToInterfaceOrientation:. I have set up my info.plist to include the "Supported interface orientations" key with all four orientations. When I run the app, however, rotating the device does not rotate the splitView (even though I am receiving UIDeviceOrientationDidChangeNotification). In addition, when

Swift: UI Elements equal nil when programatically creating split view controller

人盡茶涼 提交于 2019-12-25 18:25:30
问题 I am programmatically creating a split view controller using the following code when a table view cell is touched: let rootViewController: UIViewController = RootTableViewController() let navVC: UINavigationController = UINavigationController(rootViewController: rootViewController) let detailViewController: UIViewController = DetailTableViewController() let splitVC: UISplitViewController = UISplitViewController() splitVC.viewControllers = [navVC, detailViewController] self.present(splitVC,

UIViewController dismissViewControllerAnimated: completion: causes app to freeze

ε祈祈猫儿з 提交于 2019-12-25 05:27:18
问题 The setup I have on the iPad is a UISplitViewController that handles the main content of the app. This is set to the rootViewController of the UIWindow. When the app launches, I test to see if the user is able to login to the web service. If the user isn't able to access the web service they are presented with a UIViewController subclass which handles the authentication for the user. The UIViewController subclass is presented modally by calling: [splitViewController presentViewController

Delegate in UISplitView not being called

左心房为你撑大大i 提交于 2019-12-25 05:10:03
问题 I've set up a delegate methos to communicate from my masterViewController to my detailViewController but the delegate method isn't getting called. MasterViewController.h #import <UIKit/UIKit.h> @class DetailViewController; @class MasterViewController; @protocol MasterViewControllerDelegate - (void)SelectionChanged:(NSString *)url; @end @interface MasterViewController : UITableViewController @property (nonatomic, weak) id<MasterViewControllerDelegate> delegate; @property (strong, nonatomic)

Refreshing Master TableView of a UISplitView Controller

独自空忆成欢 提交于 2019-12-25 04:03:02
问题 while porting our latest iPhone App to an universal app, I decided to use a iPad's SplitView Controller inside of a TabBarController. The SplitViewController is managed by AppDelegate for every Tab. All works fine, but my problem is that my MasterView (on the left of the SplitView) includes 4 Category-Buttons to change the TableViews Data. If I click one of the buttons, the TableView needs to Refresh/ReloadData, to Display the new Content of the selected category. I created a function to do

UISplitViewController使用

旧巷老猫 提交于 2019-12-25 03:11:55
分割控制器UISplitViewController <1>功能:它也是ipad的一个新特性,在屏幕上可以同时显示两个控制器,左边一个,右边一个;左边的为主控制器,右边的为详细控制器,主控制器可以根据需要显示或隐藏。它对于iPhone虽然可以使用,但是不具备同时显示的特点,在iPhone的样式,就是导航控制器切换的模式。 <2>介绍 Split View通常只是一个基本元素,它填满整个屏幕,不可能把Split View放到其他什么的内部,一般情况下是提供给整个app的。 Split View有两个ViewControllers,一个左侧一个右侧,左侧叫Master,右侧叫Detail。 SplitViewController有 一个property叫做ViewControllers,它是一个数组,这个数组有两个元素,左侧和右侧,左侧是元素0,右侧是元素1 @property (nonatomic, copy) NSArray *viewControllers; <3>代理方法:Split View不能没有delegate,如果没有设置delegate,那么当Split View进入Portrait模式的时候左侧就会消失,你应该在角落里放一个小按钮,使用户可以点击它来让左侧出现 - (BOOL)splitViewController:(UISplitViewController *

UISplitView with multiple ViewControllers in DetailView (storyboard)

僤鯓⒐⒋嵵緔 提交于 2019-12-25 02:20:14
问题 i'am looking for a solution to have a UISplitView with multiple ViewControllers inside the DetailView(rightView of the UISplitView). The example of apple works fine but uses nib file instead of storyboards. (https://developer.apple.com/library/ios/samplecode/multipledetailviews/Listings/ReadMe_txt.html) I found another example but there is whitespace when i implement an UITableView http://www.dharmaworks.net/Consulting/switching-detail-views-in-uisplitviewcontroller-with-ios7 回答1: During the