uisplitviewcontroller

UITextView not showing text until I rotate it

匆匆过客 提交于 2019-12-25 01:43:43
问题 I'm using a UISplitViewController, with a view that has a UITextView as the master view, but the text does not load until I rotate the ipad twice. Logging when the app starts shows that the text view is available and the text inside it (which is defined in the nib file) is also loaded properly. What am I doing wrong? 回答1: It seems like I've found the limit to how many characters can be initially loaded into UITextView in a UIPopoverController (for portrait mode in UISplitViewController). The

Layout issues when presenting a view controller with UIModalPresentationStyleCurrentContext

痴心易碎 提交于 2019-12-25 01:33:38
问题 I ran into a problem having to do with UISplitViewController and modal view controllers on the iPad, so I tried to reproduce the issue in a small project to see if I could figure out what was going on. Unfortunately, the problem seems to still be occurring, but I can't figure out why. I've included a very small, complete Swift program below that reproduces the problem. Basically, if you run that code in a new Swift iOS project on the iPad, you'll see the following behavior: The app will start

Changing DetailViewController on btn click in RootViewController fails on iOS6 in iPad Portrait Orientation

女生的网名这么多〃 提交于 2019-12-25 00:14:50
问题 I am porting my App from iOS3.2 to iOS6. On iPad, I use the SplitViewController. In the RootViewController, I have got a table view. If the user clicks on a row in the table view, I change the DetailViewController. The code doing this is: - (void)setDetailViewAuthorPage { UISplitViewController *splitViewController = (UISplitViewController *)self.parentViewController.parentViewController; UIViewController *detail = [splitViewController.viewControllers objectAtIndex:1];

iOS Development: How can I build a complex structured iPad Application?

旧时模样 提交于 2019-12-24 15:20:36
问题 I have a scenario with 3 sub-applications embedded into a main one. I'm trying to use the splitviewcontroller to change my detailview's content, but I couldn't replace the detailviewcontroller without losing the popover. Questions: 1-How can I build a organized structure to maintain my project? 2-How can I replace my detailviews viewcontroller by another? 3-Should I use storyboard or separated XIB's? 4-Can I "call" a splitviewcontroller from a simple view? (Login(single)->AppSelection(single)

Could not load NIB in bundle using storyboard

邮差的信 提交于 2019-12-24 14:54:13
问题 With the last version of iOs 8.3, I get this error when I run one of my app: Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle The app has 2 storyboards, one for iPhone (working normally) and the other for iPad (crashing). I've tried the suggestions of this topic with no results: Xcode 6.3: Could not load NIB in bundle In my case I'm using StoryBoards and I've no flag on "Use size classes". Until iOs 8.2 the app

iOS Swift 2 UISplitViewController opens detail screen on master's place when on iPad/ iPhone 6+

不问归期 提交于 2019-12-24 11:54:05
问题 I am having the bellow described problem with getting UISplitViewController to work on xCode 7.1.1, iOS 9.1. I have implemented the Split VC with both master and detail being a navigation controller. I have a list of tasks and then a detail task view, also a 'add new task' VC. Everything works fine on iPhone, however when I try to run on iPad (any version) or iPhone 6+/6S+, I get the following issue. Initially when I select a task from Master VC, it will load in the same Master VC with a

Adding an entirely different view behind the current view

江枫思渺然 提交于 2019-12-24 11:35:23
问题 Summary: I am trying to implement a pan gesture that works just like Apple's default pan back gesture (interactivePopGestureRecognizer). The only difference is that it snaps all the way back to the primary view of a splitview controller rather than just going back one view on the stack. This is accomplished with popToRootViewController. What I can currently do: My subclass of the UIScreenEdgePanGestureRecognizer is able to follow the user's touch and animate to the proper location based on

Issue with Split View Controller with UITabbarController in iOS7

独自空忆成欢 提交于 2019-12-24 11:26:55
问题 I am using UISplitViewController inside UITabbarController. Now the problem is that when I am trying to set translucent property of tabbar to NO then it shows an additional bar above the tab bar as shown in picture below. Your help regarding the problem will be highly appreciated. Thanks - (void)setupTabbar { tabBarController = [[UITabBarController alloc] init]; tabBarController.delegate = self; if (SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"7.0")) { tabBarController.tabBar.barTintColor =

iPad UISplitView initial state in portrait: how to display popover controller widget?

╄→尐↘猪︶ㄣ 提交于 2019-12-24 10:57:14
问题 I'm working on an iPad app that uses a UISplitView. Inspired by http://blog.blackwhale.at/2010/04/your-first-ipad-split-view-application/, I display a button in my detail view when in portrait mode that shows the popover controller. This works great. However, the appropriate UISplitViewControllerDelegate message is only sent when the device rotates. So, when the app first loads (in portrait mode), my navigation button is not visible. Is it possible to somehow convince the

MGSplitViewController with all github patches?

牧云@^-^@ 提交于 2019-12-24 08:07:40
问题 I am interested in using MGSplitViewController but it seems that is has current bugs, especially when used in a tabbarController. I see that there are quite a few submitted patches on github for this. Is there a way to pull the files with all those patches? Or does someone have a branch that they are updating with all the new patches? Thanks so much. 回答1: The article "Quickly applying GitHub pull " details how to apply a pull request (which is at its core a patch) See the patch and apply