Xcode 6 How do I create an empty application for a pure handwriting UI interface?

Source: Internet
Author: User

1. Run Xcode6 to create a single View application project.

2. Then delete Main.storyboard and launchscreen.xib and throw it into the wastebasket.

3. Open Info.plist, put Launch screen interface file base name, and main storyboard file base name two item, delete (click the minus sign next to it)

4. Open the Project properties file, click the first item below target, then select the General tab and find the Use Asset Catalog button down. Click on it.

Pop up the dialog box and click Migrate. This way, the size of the application can be adjusted according to the size of the screen.

5. Finally, in the first method of appdelegate, add the necessary code before the "return" statement.

The code has only 3 sentences, which is equivalent to 3 steps away. 1. Create window;2. set window background; 3. make window visible.

OC needs to add code Self.window = [[UIWindow alloc] Initwithframe:[[uiscreen Mainscreen] Bounds]];self.window.backgroundcolor = [Uicolor Whitecolor]; [Self.window makekeyandvisible]

  

The code that Swift needs to add Self.window = UIWindow (Frame:UIScreen.mainScreen (). Bounds) self.window!. BackgroundColor = Uicolor.whitecolor () self.window!. Makekeyandvisible ()

  

Xcode 6 How do I create an empty application for a pure handwriting UI interface?

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.