IOS Development Notes 6. View controllers [MVC]

Source: Internet
Author: User

Understanding and familiarity with this is very important for subsequent development.

 

References

■ View Controller Programming Guide for iOS

For information about structuring and managing your application's user interface

Http://developer.apple.com/library/ios/featuredarticles/ViewControllerPGforiPhoneOS/ViewControllerPGforiPhoneOS.pdf

■ View programming guide for IOS.

For information about presenting and animating your user interface

Http://developer.apple.com/library/ios/documentation/WindowsViews/Conceptual/ViewPG_iPhoneOS/ViewPG_iPhoneOS.pdf

■ Model object Implementation Guide

Discusses basic issues of subclass design and implementation,

Http://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/ModelObjects/ModelObjects.pdf

Views are usually connected to view controllers, which manage events and otherwise take the Controller role in the MVC model.

 

View controlle Type

 

 

 

Uiviewcontroller class

Is a direct descendent of nsobject. that means it doesn' t get any of the functionality of uiresponder or uiview, which you find in most other uikit objects. it's also the parent object of all the other view controllers we'll discuss. practically, this means that the lessons learned here also apply to all the other controllers.

Example

The example in the "iPhone and iPad in action" book is a good reference, familiar with this, for the entireProgramThe process is very familiar.

View Example

Viewex

Tableex

Event and actionExample

Eventreporter

Guessture

RGB

Advanced View Example:

Flipex

Navex

Splitviewx

Tabex

Related Article

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.