Some issues with IOS 6 and IOS7 adaptation

Source: Internet
Author: User

As a universal design platform for iOS, client-side parsing involves a number of different versions of iOS with different resolution adaptation issues

The first thing you encounter is the background color of item in navigation bar.

Setting the Settintcolor background in iOS7 is transparent, the icon and the word default is white, the effect is good, but in iOS 6 is, the background color is also set to white, also add a border, ugly, how to do it, is still groping in the AH

The second problem is the color of the transparency of the problem, it is strange, in the setting of the background color of the cell TableView, the initial time is the same, the point is inconsistent, in iOS 6 and 7, the performance is not the same, baffled its solution, finally adjusted the opacity, initial load and click background color changed to two , which distinguishes between iOS 6 and iOS7

The third problem, UITableViewCell in the problem of drawing the split line, I found that we overloaded the

DrawRect method, I drew a line at the bottom of the cell, but IOS6.1 the following there is no problem, but the ios7.0 above line can not be drawn out, this is more strange, to find out, and finally confirmed that IOS7 modified the display mechanism here, so you can not use DrawRect to deal with, The best way is to add a label or custom UIView to line the painting, and then Addsubview in UITableViewCell to

Related Article

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.