uisplitviewcontroller

Force UISplitViewController to always show master (only) in landscape (on iPhone 6 Plus)

做~自己de王妃 提交于 2019-12-17 20:29:16
问题 In a Universal App I can't find a way to always show (and only) the master controller, even on iPhone 6 Plus in landscape rotation. What I want to achieve is to see UISplitViewController in action only on the iPad and NOT on the iPhone, don't know if it's possible delegate methods doesn't help: func splitViewController(svc: UISplitViewController, shouldHideViewController vc: UIViewController, inOrientation orientation: UIInterfaceOrientation) -> Bool { return false } func splitViewController

splitViewController in Ipad that doesnt hide in portrait

送分小仙女□ 提交于 2019-12-14 03:57:57
问题 I want to make an application which has Tab bar . In each TabBar I want to use Two Views that is Table View on left side and Detail View on other side. But the TableView should persist in portrait as well as landscape (same like setting app in iPad). I have seen some recommendation of using private API that is a risk to use. [splitViewController setHidesMasterViewInPortrait:NO]; and some tutorial like Matt Legend's https://github.com/mattgemmell/MGSplitViewController but I don't need that

how to present a login, with UISplitViewController?

。_饼干妹妹 提交于 2019-12-13 17:26:34
问题 I'm trying to build a universal iOS app. So, in Xcode I started with a Master-Detail template. In the iPhone version of this, my first view is a list of items, and I have a "Logout" button in my Navigation Bar. When the user launches for the first time, a view-controller is presented, modally, on top of my normal "master" view. It just asks for a user/pass, lets the user log in. If the user hits the "Logout" button, some cleanup occurs, and then they are presented with the Login screen again.

ios7 no displayModeButtonItem or targetDisplayModeForActionInSplitViewController

放肆的年华 提交于 2019-12-13 14:17:37
问题 I started a Split View project in xcode 6 and its working great. Out of the box I got a split view that has a navigation button (upper left) when in portrait mode such that the master view can be popped in/out. Main issue is that it does not work in iOS7 as displayModeButtonItem and targetDisplayModeForActionInSplitViewController are iOS8 only. I have seen a few apps that achieve that same effect and work in iOS7, yet I have no idea how to do this. Does anyone have a good example or

Make hide/unhide master view controller work in landscape the same as portrait

不羁的心 提交于 2019-12-13 11:50:15
问题 I am using a split view controller in a simple app. Leaving everything as default works fine. In other words, the master view controller always shows in landscape and overlays the detail view controller in portrait when the back button is pressed. What I wanted to do was make the master view controller mimic the same functionality in landscape as it does in portrait. In other words, when the device is in landscape, I want the master view controller to be hidden until I hit the back button and

didSelectRowAtIndexpath method for root / tableView in splitviewCotroller

江枫思渺然 提交于 2019-12-13 02:23:33
问题 I am using split view controller in my project, in the split view i have RootViewCotroller (left), DetaolsViewConroller (right). In the Root view controller, I have 3 rows. Now I want different type of appearance in details view, when selecting different rows in rootview. ... in Details view: 1.Display a tableView when select the row1. 2.Dispaly a text field when select the row2. 3.Image view when select row3 from rootviewcontroller. .. I wrote the code like this in RootViecontroller, but no

UISearchBar in UINavigationBar changes width when rotating orientation

≯℡__Kan透↙ 提交于 2019-12-13 02:11:28
问题 This is driving me crazy. I am creating a splitview app on iPad. I have created a searchBar inside the UINavigationBar - something like this... UISearchBar *searchBar = [[UISearchBar alloc] initWitFrame:CGRectZero]; [searchBar setPlaceHolder:@"Search"]; [searchBar sizeToFit]; [searchBar setDelegate:self]; [self.navigatioItem setTitleView:searchBar]; this works just fine for me displaying the UISearchBar like this... I also have this UIBarButtonItem set to show Master navigation controller in

display a SplitViewController from UIViewController in Objective-C

為{幸葍}努か 提交于 2019-12-13 02:10:33
问题 I am developing a ViewController (login app) with a single button, when I press this button I want to appear my UISplitView like this: - (IBAction)loadSplitViewController:(id)sender { [self showSplitViewController]; } and the code developed for the creation of my splitViewController is this: -(void)showSplitViewController{ UIStoryboard *mainStoryboard = [UIStoryboard storyboardWithName:@"MainStoryboard_iPad" bundle: nil]; LeftViewController *leftViewController = [mainStoryboard

Having issue with UISplitViewController

喜欢而已 提交于 2019-12-13 02:09:14
问题 I have created a dictionary application and I am using UISplitViewController to search and select a word, my application crashes with this log : -[MeaningViewController topViewController]: unrecognized selector sent to instance 0x7f918945bef0 Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[MeaningViewController topViewController]: unrecognized selector sent to instance 0x7f918945bef0' Here is my code : in ViewController (MasterView) : - (void)prepareForSegue

Load already initialized DetailViewControllers in Apples MultipleDetailViews Example

本小妞迷上赌 提交于 2019-12-12 23:57:49
问题 Apple presents on their iOS Development sites an example on how to use a splitview with different detailviews (see MultipleDetailViews Example). In the RootViewController eery time the cell gets selected, a new DetailViewController is initialized: - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { /* Create and configure a new detail view controller appropriate for the selection. */ NSUInteger row = indexPath.row; UIViewController