/ / Nest of UINavigationController - ios, objectif-c

Nid d'UINavigationController - ios, objective-c

Quelle est la différence entre les constructions ci-dessous?

A: Contrôleur multiple d'UINavigation.

UINavigationController
`——UITabBarController
|——UINavigationController
|   `——UIViewController
|——UINavigationController
|   `——UIViewController
|——UINavigationController
|   `——UIViewController
`——UINavigationController
`——UIViewController

B: Contrôleur de ligne unique UINavigationController.

UITabBarController
|——UINavigationController
|   `——UIViewController
|——UINavigationController
|   `——UIViewController
|——UINavigationController
|   `——UIViewController
`——UINavigationController
`——UIViewController

C: Contrôleur UINavigation unique.

UINavigationController
`----UITabBarController
|——UIViewController
|——UIViewController
|——UIViewController
`——UIViewController

Réponses:

0 pour la réponse № 1

Il est incorrect d’utiliser la navigation multiple dans la hiérarchie de votre contrôleur. Vous rencontrerez l’erreur lorsque vous pousserez une navigation vers une navigation existante:

*** Terminating app due to uncaught exception "NSInvalidArgumentException", reason: "Pushing a navigation controller is not supported"