Learn to make iOS program the next day: Create subdirectories, change project names, modify splash screen, modify class prefixes, create new startup controllers, modify app icons

Source: Internet
Author: User

Iv. Create the appropriate catalogue according to the actual situation

Delete the system default partial file Viewcontroller.h,viewcontroller.m,main.storyboard, Launchscreen.xib

Catalogs are created according to the situation, and everyone will be different. Mine is as follows.

Five: Change the project name

1. Enter the targets property of the project, find the build Settings, search for product name, and modify the property to the real software name.

2, open the supporting files directory under the Info.plist, modify the bundle name is the real software name.

3. Execute the clean command under Xcode's product menu.

Six: Modify the splash screen

Start screen has a variety of options, static pictures, multiple static graphs, dynamic effects, dynamic loading ads and so on. This feeling can not be too troublesome, waiting for a long time easy to lose customers. I will use the most primitive static picture. Just now, launchscreen.xib deleted the same reason.

1, click on the project, right select targets under the general properties, find launch Scrren File, the default is "Launchscreen", the representative is launchscreen.xib, we delete him, leave blank.

2. Click the use Asset Catalog after launch Images source. The popup dialog box is selected for merging. means not to create new, merge into Images.xcassets.

3, click the arrow behind Launchimage, enter the launchimage selection screen.

The size of the IPhone Portrait IOS 7,8-2x is 640x960

The size of the IPhone Portrait IOS 7,8-retain4 is 640x1136

Other options are:

IPhone Portrait IOS 8-retina HD 5.5 (1242x2208) @3x
IPhone Portrait IOS 8-retina HD 4.7 (750x1334) @2x

IPhone Portrait IOS 7,8-2x (640x960) @2x
IPhone Portrait IOS 7,8-retina 4 (640x1136) @2x

IPhone Portrait IOS 5,6-1x (320x480) @1x
IPhone Portrait IOS 5,6-2x (640x960) @2x
IPhone Portrait IOS 5,6-retina4 (640x1136) @2x

No art, I can only Baidu to find two pictures instead of a bit.

Vii. Modifying class prefixes

How do I forget to create a class prefix when I create a project?

Select item on the left, select Utilities,project document on the right and a class prefix to modify it.

Eight: New start controller

Because we have deleted the default sotryboard, I want to use the code to do this app.

1, find targets, under the General,deployment info under the main Interface, the default should be main, representing the Main.storyboard. But the default has been removed by us. So leave it blank.

2, the concept of the interface by Uitabbarcontroller control, the following four options, respectively, are "home", "New house", "second-hand housing", "rental", "I", so need to establish the following controller.

Homepage inherit from Uiviewcontroller, new house, housing, rent, I inherit from Uitableviewcontroller

3. Write the boot code to the AppDelegate.h file and the APPDELEGATE.M file

4. Run the simulator and try it. Normal operation without error, there is a splash screen, although not very good after entering. At least run up pull.

Nine, modify the app icon

Modifying the app icon is similar to modifying the splash screen and not repeating it. You can make a large icon and upload it to the online processing site, and the online site will generate the appropriate icon size for you by default.

Icon size reference.

Spotlight

    • IOS 5,6

      BASE:29PT, Need @1x, @2x, @3x, arrive: x, X, 87 x

    • IOS 7,8

      BASE:40PT, Need @2x, @3x, Draw: X, 120 X

IPhone App

    • IOS 5,6

      BASE:57PT, Need @1x, @2x, arrive: x, x 114

    • IOS 7,8

      BASE:60PT, Need @2x, @3x, Draw: X, 180

Settings

    • IOS 5,6,7,8

      BASE:29PT, Need @1x,@2x,@3x, arrive: X, 58x58, 87x87

10: Practical Cocopad Management third parties sometimes get an error. You can try this.

1, click on the Xcode menu product, choose Scheme,edit Scheme, choose Manage Scheme

2, delete the current project.

3. Re-join the current project

Learn to make iOS program the next day: Create subdirectories, change project names, modify splash screen, modify class prefixes, create new startup controllers, modify app icons

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.