UITableViewCell 顶格

  1. 首先在ViewDidLoad 或者ViewWillAppear里边写
     if ([_tabView respondsToSelector:@selector(setSeparatorInset:)]) {
    
             [_tabView setSeparatorInset:UIEdgeInsetsZero];
    
         }
    if ([_tabView respondsToSelector:@selector(setLayoutMargins:)]) { [_tabView setLayoutMargins:UIEdgeInsetsZero]; }
  2. 然后在cellForRowIndexPath或者是Display里边加上
     - (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath{
    
         if ([cell respondsToSelector:@selector(setSeparatorInset:)]) {
    
             [cell setSeparatorInset:UIEdgeInsetsZero];
    
         }
    
         if ([cell respondsToSelector:@selector(setLayoutMargins:)]) {
    
             [cell setLayoutMargins:UIEdgeInsetsZero];
    } }

    之后 cell 下边的 线条就可以顶格了

上一篇:Nginx代理功能与负载均衡详解


下一篇:【转】Ubuntu防火墙设置