IPad Templates

I was working on an iPad application with about 15 controllers. Some of the view controllers are displayed in full screen mode, while others are built into other view controllers (I think the split view controller).

The iPhone is very easy to navigate. Even if you have a ton of controllers, you use one of the Apple root controllers (tab or navigation). Navigation is done by the root view controllers, and you can pretty much focus on your views.

On the ipad, controllers with a shared view and tabs are not always useful, and they don’t cut it for the application I'm working on. I created separate navigation controller objects to handle hidden / displayed view controllers based on notifications that are published when the user performs an action.

Anyone else have experience solving the navigation problem on the iPad?

+3
source share
3 answers

Have you checked MGSplitViewController from Matt Gemmell?
http://mattgemmell.com/2010/08/03/mgsplitviewcontroller-updated

I am not saying that it will solve all your navigation problems, but it is an interesting idea and can help you find more / better ways to handle view controllers.

+3

iOS 5 Apple Container View. , //. !

+1

, , . Apple , :

. , , , . , , .

http://developer.apple.com/library/ios/#documentation/uikit/reference/UIViewController_Class/Reference/Reference.html

Although some things may work when you have several view controllers controlling various subviews, other things will not work. For example, only one of your controllers will be informed when the device is rotated. Likewise, not all of your controllers will be sent "viewWillAppear", "viewDidUnload", etc., which you might expect.

0
source

Source: https://habr.com/ru/post/1765137/


All Articles