IOS7 new Features

Source: Internet
Author: User

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}  

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.