iOS Development Xcode6 Add xib file, remove Storyboard's Hello World app

Source: Internet
Author: User

iOS development Xcode6.1 Create only xib files, no storyboard Hello World app

Since Xcode6, the default is to create storyboard instead of xib files, and as a beginner, it is important to understand how xib is loaded, so you need to create a project without storyboard

1. Create a new project

2. Select a template for only one view

Select Single View application and click Next

3. Fill in the project information

No need to select core data, after filling out the information, click Next, then click Create

4. Delete storyboard and launchscreen.xib files

Throw storyboard and Launchscreen into the wastebasket.

5. Modify the info.plist file

Delete info.plist files in main storyboard file base name and launch screen interface file base name two properties

6. Create a user interface view xib file

Click Next, then save as "Helloworldview" click Create

7. Modify the View controller file

Creating an association between a view and a controller, Xcode creates the ViewController.h and VIEWCONTROLLER.M files by default, so you don't have to create your own

1) Modify Xib of the View file File ' s Owner

Click File ' Owner in the list, press Command+option+3 to open the Identity Inspector, modify the class in the custom class to Viewcontroller

iOS Development Xcode6 Add xib file, remove Storyboard's Hello World app

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.