uisplitviewcontroller

UISplitViewController within UITabbarController Swift

跟風遠走 提交于 2019-12-12 03:37:48
问题 Okay i have a Universal single view application with a UITabbarController as the initial ViewController. i have a UISplitViewController as an item in one of the tabs. the SplitViewController has a navigationController as its master segue, which has a viewController with a uitableView in it and if you click a cell it "shows" the detail view (I've tried the show detail segue also). the splitViewControllers detail view controller segue goes to the detail view controller. my problem is when i go

Crash with instantiateViewControllerWithIdentifier

我与影子孤独终老i 提交于 2019-12-12 03:19:44
问题 I'm trying to get a UISplitViewController to work using a storyboard, but when I try to instantiate my master ViewController my app crashes with a cryptic EXC_BAD_ACCESS and a disassembly. I have a property, splitNavVc on my subclass of UISplitViewController, in my storyboard I have the setup below. splitNavVc is on the left hand side and is a subclass of UINavigationController. The problem is, after trying to instantiate the splitNavVc when the view loads, the app crashes. To instantiate it,

official alternative to implement Splitview as a subview for an IPad App?

喜夏-厌秋 提交于 2019-12-12 03:19:04
问题 I'm developing an app in IOS using Storyboard for the Ipad. I want to add UISplitViewController as a subview of my app. I want to generate this kind of output (see below image). when user click on FirstView's 'Next' button, a second view-splitview should appear. Output: But Apple's guidelines says that we can't push UISplitViewController as a subview of module. if we use a UISplitViewController, it has to be visible at all the times in our app. so when i tried to add any splitviewcontroller

UITableViewController and moving from an iPhone app to a Universal App

纵饮孤独 提交于 2019-12-12 02:57:58
问题 I'm working on upgrading my app to a Universal App, I made the app originally in xCode 3 so I'm not using storyboarding at all. I have a navigation controller that pushes two UITableView Controllers like this on the iPhone version: iPhone: Welcome Screen View -> UITableViewController -> UITableViewController (detail) -> ViewController What is the best way to make this iPad ready? I understand I need to use a SplitViewController. Do I push an iPad specific SplitViewController from the welcome

UISplitViewController is not rotating correctly

风流意气都作罢 提交于 2019-12-12 02:48:21
问题 I know there is a lot of discussion on this topic on stack overflow, but none of the questions have an answer that works for me. I have a SplitViewController that loads as the root view controller, and both of the tableviews inside the SVC have ShouldAutoRotate set to return YES. The SVC won't rotate with the iPad correctly, even though the clock / status bar do. Update In my AppDelegate, I've noticed that the rootViewController isn't actually set until after I set it - shouldn't the

How do I add a custom view to iPhone app's UI?

跟風遠走 提交于 2019-12-12 02:09:55
问题 I'm diving into iPad development and I'm still learning how everything works together. I understand how to add standard view (i.e. buttons, tableviews, datepicker, etc.) to my UI using both Xcode and Interface Builder, but now I'm trying to add a custom calendar control (TapkuLibrary) to the left window in my UISplitView application which doesn't involve Interface Builder, right? So if I have a custom view (in this case, the TKCalendarMonthView), how do I programmatically add it to one of the

Toolbar bar button item not working properly in SplitViewController

老子叫甜甜 提交于 2019-12-12 01:49:25
问题 I'm having a weird problem that is similar to this post or this question. My toolbar's far left bar button item's touch censor is off place. In my case this only happens when I add toolbar in DetailViewController in SplitViewController and run it on the iPhone. Red field is the off place touch censor for the item button. I've tried many things and those are the things that I found out. I'm using Xcode 6. It only happens when toolbar is in DetailViewController of SVC It only happens when you

presentModalViewController slides a new view too far up and goes above the top of the screen

两盒软妹~` 提交于 2019-12-12 01:32:47
问题 -(void)reviewClicked:(id)sender { ReviewViewController *newView = [[ReviewViewController alloc] init]; newView.delegate = self; UINavigationController *navCon = [[UINavigationController alloc] initWithRootViewController:newView]; [self presentModalViewController:navCon animated:YES]; } I have a splitViewController setup, which is what is probably causing some issues. Within the detail view controller, I have a button that when clicked calls the above code. The goal is to slide a view from the

ipad uisplitview: passing data from masterviewcontroller to a uiviewcontroller (redirected via segue)

泪湿孤枕 提交于 2019-12-12 01:29:17
问题 I'm new to iOS programming so I want to make this thing from scratch to be able understand how the whole thing works. So instead of using the master detail template I did this from the ground up. I'm having a huge roadblock in terms of passing data between the master view and the detail view. At the moment, whenever I tap on the item of the master view it would look for the first view on the detail view controller, let's call it mainswitchviewcontroller . It's the first ViewController

Calling a Function in MasterView after dismissing the ModalView in ipad

扶醉桌前 提交于 2019-12-11 20:41:51
问题 I am using Master-Detail template for ipad. I have a ViewController, which I want to show modally so I have used this code AppDelegate *appDelegate = (AppDelegate *)[[UIApplication sharedApplication] delegate]; m_ViewController = [[ViewController alloc] initWithNibName:@"ViewController" bundle:nil]; m_ViewController.modalPresentationStyle = UIModalPresentationFormSheet; [appDelegate.splitViewController presentModalViewController:m_ViewController animated:YES]; This works fine and the