Tableviewcell button on iOS7 and uiimageview individual bug not shown

Source: Internet
Author: User

To do this cell, using xib to make the cell, IPhone6, 6Plus, 5s run well, but on the IOS7 5s and ipad, the yellow star and download buttons are not displayed.

Surprised.

Baidu on the Internet, found the solution:

-(void) layoutsubviews{    [Super layoutsubviews];    Self.contentView.frame = Self.bounds;}

You can override this method of the cell.

Personally, the AutoLayout on the iOS7 is not the same as the other systems when the cell frame is displayed. Since IOS7 set Accessoryview, Contentview is moved forward. To make the contentview position unchanged, rewrite the above method.

Here to remind yourself:

For the online solution, you need to figure out a few more. Before I saw this post, think there is no meaning, there is no more thinking. It is very useful to take a moment to think slowly.

After the heart to sink, think about.

Tableviewcell button on iOS7 and uiimageview individual bug not shown

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.