What is a UIViewController

I know what UIView , but not UIViewController . I just want to know why I can use it and what it compares with UIView

+6
iphone uiviewcontroller uiview
source share
1 answer

Basically, you need to know that the model-view-controller architecture in the field of software development, UIView corresponds to the representation of this architecture, and the UIViewController is on the controller side of this architecture.

Now the UIViewController can be seen as an agent that controls (and has method implementations) the UIView events and design that are displayed on the screen. Everything that you want to change in the view can be written inside the method in its controller class, which inherits itself from the UIViewController class. This is just a brief description of this great concept. For more information you should find the link above.

+6
source share

All Articles