Ios development screen adaptation and System Version adaptation
During ios software development, it is very important to adapt the system to the system and the screen mainly because of the new features of IOS7 and later and ios 8, screen Adaptation mainly uses different la s for different devices to display the best results to users.
System adaptation:
After and before IOS7
#define IOSVersion [[[UIDevice currentDevice] systemVersion] floatValue]#define IsiOS7Later !(IOSVersion < 7.0)
The system must adapt to the following points:
1. (StatusBar) the height of StatusBarHeight after ios7 StatusBar is suspended on the top of the screen, so after ios7, the control layout needs to be added with 20, but not before ios7.
2. label text adaptation needs to be adapted
3. (ios8 adaptation) UIAlertController UIAlertAction-ios8 replaces UIAlertView
4. (ios8 adaptation) added positioning judgment for ios8. The info. plist file sets two attributes for location adaptation.
Screen Adaptation (the image system automatically identifies the number of times required)
1. If the requirement is not high, proportional amplification can be used to achieve adaptation.
2. If there are high requirements, it is most accurate to adopt automatic layout for adaptation.