uisplitviewcontroller

How do I reference the detailViewController on an iPad that is using a splitViewController

元气小坏坏 提交于 2020-01-11 12:23:06
问题 I setup a project on XCode 4.3 and IOS 5 without using storyboards for both iPhone and iPad using the default Master/Detail setup from the create new project dialog. The iPhone side works just fine. I select an option in the tableView and the detailViewController screen updates with the new information based on the selection. My implementation of didSelectRowAtIndexPath is: - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { Shapes *currentShape =

How do I reference the detailViewController on an iPad that is using a splitViewController

五迷三道 提交于 2020-01-11 12:22:54
问题 I setup a project on XCode 4.3 and IOS 5 without using storyboards for both iPhone and iPad using the default Master/Detail setup from the create new project dialog. The iPhone side works just fine. I select an option in the tableView and the detailViewController screen updates with the new information based on the selection. My implementation of didSelectRowAtIndexPath is: - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { Shapes *currentShape =

How do I reference the detailViewController on an iPad that is using a splitViewController

≯℡__Kan透↙ 提交于 2020-01-11 12:22:12
问题 I setup a project on XCode 4.3 and IOS 5 without using storyboards for both iPhone and iPad using the default Master/Detail setup from the create new project dialog. The iPhone side works just fine. I select an option in the tableView and the detailViewController screen updates with the new information based on the selection. My implementation of didSelectRowAtIndexPath is: - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { Shapes *currentShape =

UISplitViewController will not correctly collapse at launch on iPad iOS 13

我是研究僧i 提交于 2020-01-10 10:07:12
问题 I am transitioning my app to iOS 13, and the UISplitViewController collapses onto the detail view, rather than the master at launch — only on iPad. Also, the back button is not shown - as if it is the root view controller. My app consists of a UISplitViewController which has been subclassed, conforming to UISplitViewControllerDelegate . The split view contains two children — both UINavigationControllers , and is embedded in a UITabBarController (subclassed TabViewController ) In the split

iPhoneOS SDK - Remove Corner Rounding from views (iPad problem)

℡╲_俬逩灬. 提交于 2020-01-10 01:49:04
问题 This might be a little bit picky, but in the iPad SplitViewController setup, there are 2 views. Each of the views has a very small black corner rounding. (This is probably the same with iPhone apps too). This rounding is visible in the image below. What I would like to do is remove the black rounding, so the UI doesnt get these two little bumps along the bottom. Has anyone done this, or know how to? -Its surely possible. Hopefully some one has seen this before. Thanks Image Link Mirror alt

iPad SplitViewController with menu in portrait mode like settings app

坚强是说给别人听的谎言 提交于 2020-01-09 04:17:09
问题 I would like obtain a SplitView on my iPad application with my left menu in a portrait orientation such as iPad settings. For now in portrait orientation I have a content view in full screen and I have a button at NavigationBar which includes a popover with my left menu. 回答1: This is the magic you need: This method is in UISplitViewControllerDelegate, available on iOS 5.0 - (BOOL)splitViewController: (UISplitViewController*)svc shouldHideViewController:(UIViewController *)vc inOrientation:

Pass values between master and detail

别来无恙 提交于 2020-01-07 04:05:21
问题 Which do you think the best way to pass data between the two sides of a split view? Which do you think the best way to call a method from master to detail or from detail to master? Protocols? Segues? Or...? I have seen seem tutorials in this topic but I can not figure out what is the most trivial way of it. 回答1: Protocols are the best way if you need to use them for multiple UIViewControllers . Though if you need to explicitly communicate between two controllers, try simply storing a weak

UISplitViewController with new UISearchController issue with UISearchBar

∥☆過路亽.° 提交于 2020-01-07 04:01:50
问题 I recently started to rewrite my iOS app to use the new UISearchController and a universal storyboard. My app is available for both devices ( iPhone and iPad ) so the change to the universal storyboard using the UISplitViewController was a big advantage. But sadly the UISearchController isn't working as expected. I added the UISearchController with the following lines: self.searchController = UISearchController(searchResultsController: nil) self.searchController.searchBar.sizeToFit() self

Weird underlying gray outlined view trying to dismiss programmatically the master of UISplitViewController

﹥>﹥吖頭↗ 提交于 2020-01-07 00:35:43
问题 I use a UISplitViewController with preferredDisplayMode = UISplitViewControllerDisplayModePrimaryOverlay and I was looking for a way to dismiss master view controller. My master contains a table view and I'd like to close it whenever I select a cell. Surprisingly UISplitViewController doesn't seem to offer a method for that (but I do see Apple Mail doing that we you select an email in portrait mode). I found the following workaround reported here: Hiding the master view controller with

UIPopoverController gesture handling in UISplitViewController for iOS 5.1 and below

痴心易碎 提交于 2020-01-02 09:56:09
问题 I've (along with many others) have noticed that Apple changed the appearance of the popover controller to use a "slider" window rather than the usual "popover" tableview that I've used. While I'm okay with the new appearance, like others I'm having issues with the swipe gesture that is introduced: iOS 5.1 swipe gesture hijacked by UISplitViewController - how to avoid? The fix for this seems to be to set the split view controller method "presentWithGesture" to "NO." UISplitViewController