Introduction to various view controllers in Swift-ios

Source: Internet
Author: User
<span id="Label3"></p>In ios, different view controllers are responsible for different functions, presenting information to the user in different Styles. Here's a summary of each view controller:<br><span style="font-weight: bold;"><span style="font-weight: bold;">1, Standard View Controllers-view</span> controller</span>This controller is only used to render Content. It is often used as a subclass to add logic to the Screen.<br><span style="font-weight: bold;"><span style="font-weight: bold;">2, Navigation controllers-Navigation</span> controller</span>This controller renders a stack of view controllers that the application can push into more view Controllers. When the new view is pushed into the stack, or when the old view pops up the stack, the navigation controller hides the views in animated form (such as scrolling).<span style="color: #0000ff;"><span style="color: #0000ff;">Use the Sample: system settings Application</span></span><br><span style="font-weight: bold;"><span style="font-weight: bold;">3, Table View controllers-table views Controller</span></span>This view controller gives a list of cells that can be configured, formatted, sorted, and grouped separately. A table View controller can be used to display a set of items that are often used in conjunction with a navigation controller to list the views that are available to Users.<span style="color: #0000ff;"><span style="color: #0000ff;">Use the sample: system "settings", "phone" application</span></span><br><span style="font-weight: bold;"><span style="font-weight: bold;">4, tab Bar Controllers-tab Bar Controller</span></span>This is used to render a set of view controllers, which can be selected through a tab bar at the Bottom. When the user taps a button on the tab bar, the tab bar controller hides the currently displayed view controller and displays Another.<span style="color: #0000ff;"><span style="color: #0000ff;">Use the Sample: system app Store app</span></span><br><span style="font-weight: bold;"><span style="font-weight: bold;">5, Split View controllers-split views Controller</span></span>This allows you to display the Parent-child view structure in a parent view, viewing the details in a child view. Before iOS8, only the split view controller is available on the Ipad. Using the Split view controller since iOS8, the system automatically determines the appearance of the Controller. You might display the view side-by-side, hide the parent view when you view the child view, or display the parent view as a overlay.<span style="color: #0000ff;"><span style="color: #0000ff;">Use the Sample: "settings" app on ipad</span></span><br><span style="font-weight: bold;"><span style="font-weight: bold;">6, page Controller--page View</span> controllers</span>This controller renders the view controller in a "paging" interface. Like a book, each "page" in the book is a view controller that allows users to drag their fingers across the screen to page Them. Ideal for creating book or Magazine-style Applications.<span style="color: #0000ff;"><span style="color: #0000ff;">Use the Example: "iBooks" app on iphone or ipad</span></span><br><span style="font-weight: bold;"><span style="font-weight: bold;">7,glkit Controllers-glkit View</span> controller</span>This controller allows OpenGL to be used to render 3D images to the User. is a very specialized view controller.<br><span style="font-weight: bold;"><span style="font-weight: bold;">8, Collection View Controllers-Collection View Controller</span></span>This view controller renders a customizable, configurable view grid that is rendered similar to a tabular view controller, but is a more flexible item instead of a separate cell.<span style="color: #0000ff;"><span style="color: #0000ff;">Use the Sample: Photos app on iphone</span></span><br><span style="font-weight: bold;"><span style="font-weight: bold;">9,avkit player views Controller-avkit player View Controllers</span></span>This controller displays a Full-screen video player designed to play video Content.<br>(note: on ios, The view controller can contain other view Controllers.) For example, a navigation controller is a view controller that manages the appearance of the navigation bar at the top of the screen and one or more other view Controllers. )<br>Original from: www.hangge.com Reprint please keep the original link: http://www.hangge.com/blog/cache/detail_839.html<p><p>Introduction to various view controllers in Swift-ios</p></p></span>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.