MVC when developing in objective-C without using Interface Builder

What is the correct way to implement true MVC in Objective-C (Cocoa / iPhone) when a view is NOT created using Interface Builder?

What is the best way to structure the code and bind the various components of the MVC template together when I do not use the interface constructor in my project?

+3
source share
3 answers

Usually, when you try to create a view without any help from the nib file, you will have to implement this method loadView view view.

, : , V, loadView , , C, .

0

: , viewController , UIView . , viewController -, , UIView, . , , viewController viewControllers , UINavigationContoller.

0

, . , UITableView, init. , ViewController

-2
source

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


All Articles