IOS Tabview Adaptation issues

Source: Internet
Author: User

iOS7 's UITableView achieves ios6 fillet effect

IOS7 UITableView made similar iOS6 style

In the iOS7 we will find that the cell's default line will be shifted to the right, leaving some positions on the left, which we can call the following method to resolve. This way our cell will be as full as the width of the iOS6 before.

if ([TableView respondstoselector: @selector (setseparatorinset:)]) {    [TableView setseparatorinset: Uiedgeinsetszero];}

Remove the useless split line from the head and bottom of the tableview UIView *view = [UIView new];
View.backgroundcolor = [Uicolor Clearcolor];
[TableView Settablefooterview:view];
[TableView Settableheaderview:view];
[View release]; The simple way to remove the cell's border from the TableView is simply to set the Backgroundview to an empty view, and then it's clean.

UIView *tempview = [[UIView alloc] init];

[Cell Setbackgroundview:tempview];

[Cell Setbackgroundcolor:[uicolor Clearcolor]];


  self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone;

[Centertableview Setseparatorinset:uiedgeinsetsmake ( -5,0,0,0)];

[Centertableview Setseparatorinset:uiedgeinsetszero];


iOS TableView those things (20) iOS7 Split line short 15 pixels

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: 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.