uisplitviewcontroller

MGSplitViewController Not As Root

喜夏-厌秋 提交于 2019-12-08 06:40:44
问题 I need to use an MGSplitViewController because of it's ability to show the master view controller in the portrait mode. However, before displaying my split view, I need to display a login screen. Unfortunately I am unable to pop the view controller in fullscreen at startup because of some other methods that I have called! Below, is my app delegate and detail view controller codes. Please note, that the selector methods prevent me from opening a modal! AppDelegate.h was constructed using

Problem after dismissing a modal view used in conjunction with a uisplitviewcontroller

为君一笑 提交于 2019-12-08 05:53:47
问题 I'm having a hard time understanding why the following is happening (and how to fix it). I've created an application using the split-view based application. I've added a UiBarButtonItem called showTheModal which calls this method found in RootViewController.m: - (IBAction)showTheModal:(id)sender { theModalController.modalPresentationStyle = UIModalPresentationFullScreen; theModalController.modalTransitionStyle = UIModalTransitionStyleCrossDissolve; [self presentModalViewController

How to create UISplitViewController's portrait behavior in landscape orientations?

南笙酒味 提交于 2019-12-08 05:46:15
问题 I'm trying to find a solution I've seen implemented in some iPad apps where what appears to be a UISplitViewController does not display the master view docked to the left in landscape orientation. Instead, the behavior is exactly the same in landscape as in portrait, with a UIBarButtonItem on the left side of a UIToolbar at the top of the screen bringing up a UIPopoverController with the master view controller's view. This presents some menu options that, when selected, appear to launch new

in Split view controller didSelect method not working

无人久伴 提交于 2019-12-08 04:28:34
问题 i am working on splitviewcontroller in window based application im writing code as follows but didselect not working in LeftViewController.h: #import <UIKit/UIKit.h> @class RightViewController; @interface LeftViewController : UITableViewController { RightViewController *details; } @property (retain, nonatomic) NSNumber *detailItem; @end InLeftviewController.m: didselectmethod: - (void)tableView:(UITableView *)tableView didDeSelectRowAtIndexPath:(NSIndexPath *)indexPath { RightViewController

UISplitViewController problems with IOS 5.1

拜拜、爱过 提交于 2019-12-08 03:51:24
问题 I have a problem, I am programming with Monotouch 5.2.8 for IOS 5.1. But since the IOS 5.1 update my iPad configs the UISplitViewController so it is docked on the left side instead of presented as a popover. It works with IOS 5.0 but in 5.1 i got this problem. Here is the source code for my UISplitViewController: splitViewController = new UISplitViewController (); splitViewController.WeakDelegate = detailViewController; splitViewController.ViewControllers = new UIViewController[] {

how to add an adbannerview to a UISplitviewController

社会主义新天地 提交于 2019-12-08 02:13:20
问题 I have made an ipad application using an UISplitViewController, which functions in both orientation. Now I want to add banners to this application. How do I do this? In interface builder I can only add a portait banner to the detailView, which works more or less, but when I turn the iPad and click the banner it opens in portrait mode instead of landscape mode. And the banner can never get the prescribed width for ipad-landscape mode. Trying to do it programmatically, it tells me that the

Migrating a tab bar-based iPhone project to iPad

倖福魔咒の 提交于 2019-12-07 20:32:08
问题 Like many other developers out there, I've created iPhone projects that use a UITabBarController as the root controller, with the tab views using UINavigationController s to drill down from lists to detail views. And like many other developers out there, I need to migrate these apps to the iPad so they take advantage of the bigger screen (and more importantly, not forcing the user to use the ugly "doubling" visualization for iPhone-only apps). Apple created the UISplitViewController for this

Shows a faded gray color view through iOS 7 Navigation bar of a UISplitViewController

狂风中的少年 提交于 2019-12-07 16:10:37
问题 I have written a test iPad app which contains only a split view. I used the storyboard for set the split view. I did not do any modification to the generated split view controller by the storyboard. But did some modifications to the master view controller and the detail view controller as follow, Master View Controller: - (void)viewDidLoad { [super viewDidLoad]; ............ if ([self respondsToSelector:@selector(edgesForExtendedLayout)]) { self.edgesForExtendedLayout = UIRectEdgeNone; } }

UISplitViewController - prevent splitting in landscape on iPhone 6 plus

匆匆过客 提交于 2019-12-07 10:55:52
问题 I am using a UISplitViewController in my app. This works just fine on iPad where primary and secondary are always visible, and it works just fine on most iPhones where it acts like a UINavigationController. On iPhone 6+ and 6S+ the split view acts like an iPhone in portrait and like an iPad in landscape. This splitting in landscape is causing me problems and I'd like to avoid it. Is there any way to prevent the UISplitViewController from showing primary and secondary controllers in iPhone 6+

iPad - Popover frame color

久未见 提交于 2019-12-07 09:02:52
问题 So I have a split view application I am working on and have encountered a strange UI bug. Here goes my best attempt to explain it. If I load the app in landscape mode, the top navigation bar of the root controller is the proper color. I am doing this in rootView's ViewWillAppear method: self.rvBar.tintColor = [UIColor colorWithRed:59.0/255 green:115.0/255 blue:185.0/255 alpha:1]; Now when I rotate the device, and display the view via a popover, the popover is black. Do you know how to change