How the project works as a whole with xib+ code
1. Adjust the project file structure
2. Import the resource picture into the project
- General->launchscreen modification
3.APP Name Modification
Info->bundle Name
4. Delete Storyboard and modify General->main interface Delete
5. Create a window for the app
AppDelegate.h
-(BOOL) Application: (UIApplication *) application didfinishlaunchingwithoptions: (Nsdictionary *) launchOptions { Create window Self.window = [[UIWindow alloc] init]; Self.window.frame = [UIScreen mainscreen].bounds; Set the window's root controller self.window.rootViewController = [[Xmgtabbarcontroller alloc] init]; Display window [Self.window makekeyandvisible]; Show push boot [Xmgpushguideview show]; return YES;}
6. Project header file, set up the PCH file for the entire project header file
- PCH file, new File->other (file name default)
- Build seetting-> searched prefix Header, enter the path to the PCH file (project folder name/classes/other/prefixheader.pch)
iOS new Project Basic configuration