iOS8 ios7 tableview Cell split line left justified

Source: Internet
Author: User

Left justified code in iOS8

// Add the following code -(void) TableView: (UITableView *) TableView Willdisplaycell: (UITableViewCell *) cell Forrowatindexpath: (Nsindexpath *) indexpath{         if  ([TableView respondstoselector: @selector (Setseparatorinset:)]) {        [TableView Setseparatorinset:uiedgeinsetszero];    }          if ([TableView respondstoselector: @selector (setlayoutmargins:)]) {        [TableView setlayoutmargins: Uiedgeinsetszero];    }          if ([Cell Respondstoselector: @selector (setlayoutmargins:)]) {        [cell Setlayoutmargins:uiedgeinsetszero];}    } 

Left justified code in IOS7

if 7  = Uiedgeinsetsmake (0000);}

If you use nib or storyboard in iOS7, you can change the mode of separator insets to custom, and change the left 15 to 0 reprint, please specify: Tian Fox blog»ios7 tableview separatorinset Cell Split Line left justified

The above contents are quoted separately http://blog.sina.com.cn/s/blog_5da93c8f0101qgdz.html http://roybaby.blog.51cto.com/1508945/1558182

iOS8 ios7 tableview Cell split line left justified

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.