Transfer from http://my.oschina.net/vimfung/blog/159767
1. UITableViewCell Change
In previous versions, the UITableViewCell BackgroundColor was a transparent background, but in iOS7 it was the default white background, and if you were to be aware of the application that added background behind the TableView, Set BackgroundColor to [Uicolor Clearcolor] when creating UITableViewCell
2. Changes in Uiviewcontroller
The view in the previous version of Uiviewcontroller is automatically adjusted to remove the height of the navigation bar after it is displayed. This way, when we place the control, it will be displayed below the navigation bar. But in the IOS7 Uiviewcontroller Wantsfullscreenlayout has been discarded, no longer provide this attribute, all the Uiviewcontroller created by default is full screen, So if some of the controls in the app interface with the navigation bar are covered by the navigation bar.
To resolve this situation, you can use the Uiviewcontroller new properties Extendedlayoutincludesopaquebars and Edgesforextendedlayout in iOS7 to resolve. This property specifies whether the view extends to the area of bar when the bar is using an opaque picture, the default value is No. And edgesforextendedlayout is to indicate whether the view covers the area of four weeks, the default is Uirectedgeall, that is, the upper and lower left and right four directions will be overwritten, so that the top does not extend to the area covered by the navigation bar, we can extend the top area to remove. The implementation code is as follows:
?
| 12 |
self.extendedLayoutIncludesOpaqueBars = NO;self.edgesForExtendedLayout = UIRectEdgeBottom | UIRectEdgeLeft | UIRectEdgeRight; |
3. Unable to get MAC address again
The MAC address is no longer available in iOS7, and he will be fixed back to 02:00:00:00:00:00. Apps that use MAC addresses in previous versions may need to be tuned.
4, Hidden StatusBar
Before you can hide the status bar, you only need to call
?
| 1 |
[UIApplication sharedApplication].statusBarHidden = YES; |
Can.
In addition to calling the above code in IOS7, you need to add a "View controller-based status bar appearance" in Info.plist and set it to No.
IOS7 differences from previous versions