//設(shè)置cell的偏移量
- (void)tableView:(UITableView*)tableView willDisplayCell:(UITableViewCell*)cell forRowAtIndexPath:(NSIndexPath*)indexPath
{
if([tableViewrespondsToSelector:@selector(setSeparatorInset:)]) {
[tableViewsetSeparatorInset:UIEdgeInsetsMake(0, -10,0,0)];
}
if([tableViewrespondsToSelector:@selector(setLayoutMargins:)]) {
[tableViewsetLayoutMargins:UIEdgeInsetsMake(0, -10,0,0)];
}
if([cellrespondsToSelector:@selector(setLayoutMargins:)]) {
[cellsetLayoutMargins:UIEdgeInsetsMake(0, -10,0,0)];
}
}