iOS Development Project-01 Environment Building
First, the basic process
1. Create a new project (1) Delete Storyboard (2) in the configuration interface, remove main, and manually set 2. Prepare the footage as follows: This project is imitating Sina, realizing a cottage Sina Weibo system, the new version of the system has abandoned the non-Retina screen. Plainly, in this case, if the phone is a 3.5-inch IOS7 system, the startup animation is not visible. Set the method, right-click the show in Finder, and modify the JSON file. Contents.json, modify the file to allow the system splash screen to support the 3.5-inch IOS7 system. When finished, it appears in the project as follows: The application icon on the emulator:
second, simple code
1 //2 //YYAPPDELEGATE.M3 //01-Weibo environment Construction4 //5 //Created by Apple on 14-7-3.6 //Copyright (c) 2014 itcase. All rights reserved.7 //8 9 #import "YYAppDelegate.h"Ten One @implementationyyappdelegate A --(BOOL) Application: (UIApplication *) application didfinishlaunchingwithoptions: (Nsdictionary *) Launchoptions - { the - //1. Create a window -self.window=[[UIWindow alloc]init]; -Self.window.frame=[UIScreen mainscreen].bounds; + - //2. Setting the root controller of the window +Uitabbarcontroller *TABBARVC =[[Uitabbarcontroller alloc]init]; ASelf.window.rootviewcontroller=TABBARVC; at - //3. display window - [Self.window makekeyandvisible]; - returnYES; - } -
Run (Emulator Welcome Interface):
Iii. adaptation of IOS6 and IOS7
Modify the configuration information version to 6.1
To view the emulator:
Description: The Xcdoe is loaded with an additional ios6.1 simulator. This project can only run on a 6.1 or 7.1 (own) system, if you need to see the system in different versions of the effect, it is recommended to switch the device before running, so faster.
Remove the highlight effect from the icon
Note: The picture will have a cache in the system, clear first, delete the application and run again.
Set to hide the status bar during program startup