uitableview - iOS Master-Detail, how to use different detailViewControllers in iPad -


I have a master-detection iOS app, with the storyboard built from the standard XCode template.

I've found that most items need to display a view with a browser, and a setting (using FXForms) forms when the user clicks on the "Settings" item. In a way it does this in the iPhone, but one can not get an iPad in the iPad. I create another view controller in the iPhone Storyboard and make another Segue connection from the master to the new view controller. Then I do the following in didSelectRowAtIndexPath

  (if index.path.section == 0 and indexPath.row == 2) // settings [self performing SegueWithIdentifier : @ "Show Settings" From: Self]; Other [Self Performance SegueWithIdentifier: @ "showDetail" sender: Self];  

When I click on settings, the settings appear in the view. Navigation works even further behind.

However, in the iPad, the ViewController extension is always there, on the right side of SplitViewController, how can I modify the storyboard and / or code to swap the default view in settings and then swap back again. Can i do

I also learned that the default template from XCode creates a "Relationships" segment for the iPad Storyboard, which is not one type in the iPhone Storyboard, and as I did in the iPhone case, Can not be treated like "show settings" or "show details".

From the comments to the original post I found that:

  1. If I target iOS 8, then I can use the same storyboard for both the iPhone and the iPad, and then I can use it to replace the "expanded" segment (which is called " Show details "called segaz) is very convenient, but it is not available for iOS 7.

  2. For iOS 7, I can use Segaz to support the iPhone, and for the iPad I have to do something like this (in my code for IX Table view: (UITableView * I / O)

) Select the tableview: TrueTypePath: (for a specific line (NSIndexPath *) index path ) .

  FXFormViewController * Controller = [[FXFormViewController alloc] I currently backed up the current last object of  self.splitViewController.viewControllers  IbsettingForm * SettingsForm = [[IBetineting Farm Elok] IIT] SettingsForm.fontSize = 12; Controller.formentolar.form = settingsform; // It has been created that in my new view, a Navigation Bar UINavigationController * Navigation Controller = [[UINavigationController alloc] init] [Navigation controller Push ViewController: Animated Controller: false]; Self.splitViewController.viewControllers = [NSArray arrayWithObjects: [self.splitViewController.viewControllers objectAtIndex: 0], navigation controller, zero];  

Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -