View coordinate layout issues in the ios7.0 view Controller
if ([[[[Uidevice Currentdevice] systemversion] floatvalue]>=7.0) { Self.edgesforextendedlayout=uirectedgenone The screen coordinate position is not adjusted in//ios 7 }
the coordinates of Self.view in iOS6 are from the bottom of the navigation bar (0,0,320,480) IOS7 Self.view is the default that starts at the upper left corner of the screen (0,0,320,480) Fills the entire screen if you set to Self.edgesforextendedlayout=uirectedgenone; coordinates (0,64,320,416) 64 = equals the height of the status bar + navigation bar.
ios7 the way to return enumeration values by Viewcontroller overloaded methods to control the hiding and styling of the status bar. First of all You need to add the key: Uiviewcontrollerbasedstatusbarappearance and set to Yes in the Info.plist configuration file, and then implement the following two methods in the Uiviewcontroller subclass: Copy Code-( Uistatusbarstyle) preferredstatusbarstyle{return uistatusbarstylelightcontent;//Set the color of the status bar}-(BOOL) prefersstatusbarhidden{return no;//whether to show the status bar Yes is hidden, NO is display}