- The view controller is responsible for placing the UI elements in the correct locations on screen, setting the contents of the UI elements, handling button presses and other user inputs, updating the model when needed etc.
- ViewController controls the contents of the whole screen in an iPhone App and that is why it is often easy to think of things in terms of view controllers
- A view controller is a class that that controls how stuff is drawn in a view, it contains all the code and logic).
- ViewController class is used to control the UIView instance (object) and the view which are present in the UIView (buttons,labels,table).
- The ViewController manages the modal view, device rotation, memory management etc, Subclasses such as UINavigationController and UITabbarController provide additional behavior for managing complex hierarchies of view controllers and views.
- The UIViewController has a view property with the help of which you can refer to the view which it controls, now this view can have another view like the button,label,table etc.
1.What are the differences between Cocoa and Cocoa Touch?
2.What is Xcode ?
3.What is the use of plist ?
4.What is .ipa in iOS ?
5.What is .xib in iOS ?
6.Your apps will scale automatically on iPhone 6, iPhone 6 Plus screens.
7.What are required delegates and data sources for Table View?
8.Some important notes about View in iPhone.