View creation process in iOS

Source: Internet
Author: User

There are three ways to create a controller view in iOS apps: Storyboard, Xib, and code, when the app starts to load the view (Apple official):

650) this.width=650; "src=" Http://images.cnitblog.com/blog2015/639800/201503/311436309675553.png "width=" 500 " height= "427" alt= "311436309675553.png"/>


Let's say I'm using a Wysviewcontroller controller.

  When the app starts, it loads the controller's Loadview,

1, if there is code in the Loadview, directly with the code in the Loadview to create the view

2, if there is no code in Loadview,

A, when you use storyboard, the program loads the storyboard to create the view,

B, when you use Xib, the program loads the Xib to create the view,

A, when loading xib, its loading xib format is to first try to load Wysview.xib,

b, if there is no wysview.xib, then try to load wysviewcontroller.xib,

C, if none exist, then an empty view is created automatically

650) this.width=650; "src=" Http://images.cnitblog.com/blog2015/639800/201503/311405115766351.png "width=" 655 " height= "345" alt= "311405115766351.png"/>

This article is from the "Future" blog, please be sure to keep this source http://yuanshui.blog.51cto.com/2097536/1632849

View creation process in iOS

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.