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.M 3// 01-Weibo environment Build 4//5// Created by Apple on 14-7-3.6// Copyright (c) 2014 it Case. All rights reserved. 7//8 9 #import "YYAppDelegate.h" @implementation YYAppDelegate12-(BOOL) Application: (UIApplication *) appli cation didfinishlaunchingwithoptions: (Nsdictionary *) launchOptions14 { //1. Create Window self.window=[[ UIWindow alloc]init];18 self.window.frame=[uiscreen mainscreen].bounds;19 //2. Setting the root controller of a window Uitabbarcontroller *tabbarvc =[[uitabbarcontroller alloc]init];22 self.window.rootviewcontroller=tabbarvc;23 //3. display window [Self.window makekeyandvisible];26 return yes;27}28
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
Tags: iOS development, Project article
iOS Development Project-01 Environment Building