ios - How to implement push navigation when using UISplitViewController on iPhone? -


I would like to implement a UISplitViewController which runs on the iPad and the iPhone. While running on the iPhone, I only see one view controller at a time, so when the user taps into a cell in the master view controller, it should be pushed to reveal the detail in view of the controller.

I've pulled an UISplitViewController in the interface builder and working on the iPad. When I tap a cell, it updates the detail view controller's information through a protocol. It only calls the method about the representative and sends it in the appropriate information, and the representative method just takes the data passed and reloads the table. Because both are on the screen at the same time, it works great

But when I run an app on the iPhone, when I select a row, the methods are still explicitly called but The extension view controller does not push the screen. It seems that when you tap a cell, then nothing happens.

I think it is automatically used when using the split view controller on the iPhone, but maybe I need to do some work to deal with it as expected.

When I select a line in the user's visible controller while running on the iPhone, what do I do to push the Expansion View Controller on the Navigation Stack?

Additionally, it is possible to make it compatible with iOS 7, or I will need to do that in the old way - when the user selects the line, the other view controller Segment one to reveal? According to

, you can not use UISplitViewController on the iPhone.

The UISplitViewController class is a container view controller that manages the presentation of two side-by-side view controllers. You use this class to apply a master-detail interface, in which the left-side view presents a list of items and presents details of the right-hand side selected item. Split view controllers are specially used for iPad devices Trying to make one on the results of other devices in one exception

What I do check it Whether it is an iPad or not, and act accordingly. For example, you can change the representatives.

You can set the representative to yourself when it is an iPhone, and use the same method that changes the information to see a push and data in that way Show.


Comments

Popular posts from this blog

Member with no value in F# -

java - Joda Time Interval Not returning what I expect -

c# - Showing a SelectedItem's Property -