D
D
Dmitry2015-06-13 07:05:15
Cocoa
Dmitry, 2015-06-13 07:05:15

Storyboard + Navigation Controller. How to properly organize?

Problem essence: there is an application with several screens and Navigation Controller'om. The start screen in IB is associated with this controller and is automatically given a Navigation Bar, but other screens that will be added to the same controller in the program itself do not have it. To tell the program that other screens should also be associated with the controller, you have to create transitions between the start screen and other ones.
Tell me why is it so uncomfortable? I suspect that there is either an easier and more convenient way to bind all screens to one navigation controller, or the idea itself is wrong and there are some normal ways to implement such an application.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Prigozhenkov, 2015-06-13
@Waka_Waka

The idea itself is more than brilliant. IMHO.
If you don’t like the storyboard\IB, then you can navigate through the screens in the code.

ControllerName *controller = [ControllerName new];
[self.navigationController pushViewController:controller animated:YES];

If using a storyboard
[self.storyboard instantiateViewControllerWithIdentifier:@"Controller identificator"];

A
An, 2015-06-14
@Flanker_4

Everything is there
Top bar is called, choose the view controller, and right there
Inherit by default

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question