IOS Some phenomena and workarounds

Source: Internet
Author: User

1, after iOS7 with ScrollView of the page returned when the overall will fall 45 of the height of the reason: iOS comes with the optimization (also calculate the bug), the solution is as follows:

        Self.automaticallyadjustsscrollviewinsets = no;//written in init

2, in IPhone6 and 4s above are full-screen to the iphone5/5s there is a black edge reason: the lack of boot images; The workaround is as follows:

Use launch image to add 1136*960 's boot image/use Launchscreen. Xib need to do the auto layout (basically not have this problem)

3, sometimes I have to add a page for their own childview why click on the button above or will not respond to it? Reason: The corresponding controller has not been added, the workaround is as follows:

    [Self addchildviewcontroller:kk];//and add Childview

To be CONTINUE ...

IOS Some phenomena and workarounds

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.