Create a program loading interface
-(BOOL) Application: (UIApplication *) application didfinishlaunchingwithoptions: (nsdictionary *) launchOptions{ 1> Create window self.window = [[UIWindow alloc] Initwithframe:[uiscreen mainscreen].bounds]; 2> the root controller of the Setup window uitabbarcontroller *tabbarcontroller = [[Uitabbarcontroller alloc] init]; Self.window.rootViewController = Tabbarcontroller; 3> display window [Self.window makekeyandvisible]; return YES;}
launchimage ConfigurationThe detailed configuration of Launchimage is documented in the Contents.json file under the Launchimage.launchimage file:
Cancel app icon rendering
Hide the status bar when the program loads
You can call [application Setstatusbarhidden in the Didfinishlaunchingwithoptions method After the program is loaded to restore the status bar display. :NO] method;
Rendering Pictures
In IOS7, the picture of SelectedImage will be rendered blue again, if you want to display the original image, you must cancel the rendering;
To cancel the rendering call method:
SelectedImage = [SelectedImage imagewithrenderingmode:uiimagerenderingmodealwaysoriginal];
How to differentiate between IOS6 and iOS7
#define IOS7 ([[Uidevice currentdevice].systemversion Doublevalue] >= 7.0), generally placed in itcastweibo-prefix.pch
How to set different pictures according to IOS6 and iOS7, such as: Ios6 picture is convex out, iOS7 is flat
Write a category #import "Uiimage+mj.h" @implementation UIImage (MJ) + (UIImage *) Imagewithname: (NSString *) name{ if (iOS7) { nsstring *newname = [name stringbyappendingstring:@ "_os7"]; UIImage *image = [UIImage imagenamed:newname]; if (image = = nil) {//Picture with no _os7 suffix image = [UIImage imagenamed:name]; } return image; Non-iOS7 return [UIImage imagenamed:name];} Get different pictures by category//Set the selected icon UIImage *selectedimage = [UIImage imagewithname:selectedimagename]; if (iOS7) { childVc.tabBarItem.selectedImage = [SelectedImage imagewithrenderingmode: Uiimagerenderingmodealwaysoriginal]; } else { childVc.tabBarItem.selectedImage = selectedimage; }