I know what a UIView is but not a UIViewController. I just want to know what I could use it for, and what it is compared to a UIView
I know what a UIView is but not a UIViewController . I just want
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Basically you need to know, what is model-view-controller architecture in the software engineering field, the
UIViewcorresponds to view of this architecture andUIViewControlleris at controller side of this architecture.Now
UIViewControllercan be thought as an agent that controls (and has the implementations of methods) the events and design of theUIViewthat is shown on the screen. Anything you want to change on the view can be written inside a method in its controller class, that inherits itself fromUIViewControllerclass. That is only the brief description of this big concept. For details you should look for the above link.