zoukankan      html  css  js  c++  java
  • UITableViewCell分割线左边部分缺少一些的解决方法

    -(void)viewDidLayoutSubviews {
        
        if ([self.mytableview respondsToSelector:@selector(setSeparatorInset:)]) {
            [self.mytableview setSeparatorInset:UIEdgeInsetsZero];

        }
        if ([self.mytableview respondsToSelector:@selector(setLayoutMargins:)])  {
            [self.mytableview setLayoutMargins:UIEdgeInsetsZero];
        }

    }

    -(void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPat{
        if ([cell respondsToSelector:@selector(setLayoutMargins:)]) {
            [cell setLayoutMargins:UIEdgeInsetsZero];
        }
        if ([cell respondsToSelector:@selector(setSeparatorInset:)]){
            [cell setSeparatorInset:UIEdgeInsetsZero];
        }

  • 相关阅读:
    CSS实现底部固定
    ES6新特性--多行文本
    DataTable转实体
    jQuery插件开发
    页面可编辑
    clearfix--清除浮动
    前端日历控件推荐
    图片Base64编码
    第八周学习进度博客
    人月神话多后感01
  • 原文地址:https://www.cnblogs.com/jshen/p/4504469.html
Copyright © 2011-2022 走看看