Some issues with iOS about UI adaptation

Source: Internet
Author: User

1, if set Self.navigationController.navigationBar set the background of Uibarmetricslandscapephone, but not set the background of Uibarmetricsdefault, Navigationbar will become transparent.

: Navigationbar Transparent


2. There is also a problem, if not set self.automaticallyadjustsscrollviewinsets = NO, then iOS7 will automatically let ScrollView slide 64 to meet the UITableView first row of the display needs, This brings another problem, and the frame of the drop-down refresh view has changed, causing the entire drop-down refresh to be unavailable.
3. Self.automaticallyadjustsscrollviewinsets This property is a new method IOS7 only, the purpose is to let ScrollView automatically adapt to the screen, if self.automaticallyadjustsscrollviewinsets = NO, then the effect becomes the following:

My Viewcontroller inherits the Uitableviewcontroller, so TableView is generated with the system, before IOS7, the starting point of the TableView frame is (0, 20), after IOS7, Its starting point becomes (0,0), this time if in order for the drop-down to work properly, you must set theself.edgesforextendedlayout = Uirectedgenone
(this applies to containers built on Uinavigationcontroller).
4.If you set the Self.navigationController.navigationBar setting Uibarmetricsdefault the background is empty, the default is IOS7 the top bar tile effect, if the picture is set, And the picture remains at 44 (88), so the ios5,6,7 effect is consistent.
5.iOS7 in the statusbar of the background, his uistatusbarstylelightcontent and Uistatusbarstyledefault will only change the StatusBar text, there will be no background
6.The viewcontroller-based Status Bar appearance controls the appearance of the StatusBar, and if set to Yes, Preferredstatusbarstyle is called. If no, the traditional way to control
Normal conditions on the ios6,7 display











7. Under IOS7, if you do not set the background image of Navigationbar, and set [ navigationbar setbarstyle:uibarstyleblacktranslucent ]; can get the default black frosted glass effect


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.