Viewcontroller is an important part of the iOS application and is an important bridge between application data and views, Viewcontroller managing many views in your app. Many native Viewcontroller are available in the iOS SDK to support standard user interfaces such as Table view controllers (Uitableviewcontroller), navigation controllers ( Uinavigationcontroller), tab Bar controllers (Uitabbarcontroller), and ipad-specific uisplitviewcontroller.
< Span style= "color: #555555; line-height:19.5938px; " > by structure you can divide all the viewcontroller of iOS into two categories:
1, mainly for the display of content Viewcontroller, This viewcontroller is primarily used to present content to the user and interact with the user, such as Uitableviewcontroller,uiviewcontroller.
2, Viewcontroller for control and display of other viewcontroller. This kind of viewcontroller is generally a viewcontroller container. such as Uinavigationcontroller,uitabbarcontroller. They all have a property: Viewcontrollers. Where Uinavigationcontroller represents a stack-type structure, push a viewcontroller or pop once, so the latter viewcontroller generally depend on the previous viewcontroller. While Uitabbarcontroller represents an array structure, each viewcontroller is tied.
Viewcontroller in Swift