Xcode6.0 + create an empty application step:, xcode6.0empty

Source: Internet
Author: User

Xcode6.0 + create an empty application step:, xcode6.0empty

1. Select the Single View Application template.

2. Delete Main. storyboard and LaunchScreen. xib.

3. In Info. plist, delete the Launch screen interface file base name and Main storyboard file base name.

4. Click Use Asset Catalog in target. In the dialog box, click Migrate.

5. Add the code in the first method of AppDelegate:

 

OC:

(1) create a window

Self. window = [[UIWindow alloc] initWithFrame: [UIScreen mainScreen] bounds];

(2) set the window background

Self. window. backgroundColor = [UIColor whiteColor];

(3) make the window visible

[Self. window makeKeyAndVisible];

 

Swift

Self. window = UIWindow (frame: UIScreen. mainScreen (). bounds );

Self. window !. BackgroundColor = UIColor. whiteColor ();

Self. window !. MakeKeyAndVisible ();

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.