storybo

作者: 傲骨天成科技 | 来源:发表于2017-10-20 11:27 被阅读20次

    混编

    pragma mark - UITableViewDelegate

    必须写下面的代理,否则你会崩溃
    //表示cell的内容缩进

    • (NSInteger)tableView:(UITableView *)tableView indentationLevelForRowAtIndexPath:(NSIndexPath *)indexPath{
      //表示动态cell在section 为 1 静态cell的section 0
      if (indexPath.section == 2) {
      return self.selectedItemMArr.count + 1;
      }
      return indexPath.row;
      }

    相关文章

      网友评论

          本文标题: storybo

          本文链接:https://www.haomeiwen.com/subject/tjomuxtx.html