zoukankan      html  css  js  c++  java
  • iostbleView刷新后显示指定cell

    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.01 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{

                    if (arr.count > 0) {//数组为taleView数据源

           //下面是实现展示第一个cell

                        NSIndexPath *indexPath = [NSIndexPath indexPathForRow:0 inSection:0];

                        [self.tbFirst scrollToRowAtIndexPath:indexPath atScrollPosition:UITableViewScrollPositionTop animated:YES];

                    }  

                });

    以上方法必须是在网络请求之后并且tableView reloadData之后才可以

  • 相关阅读:
    CSS
    表单
    框架
    表格
    列表
    定位--position属性
    浮动
    选择结构
    数组
    TextView(标签控件)
  • 原文地址:https://www.cnblogs.com/sunfuyou/p/6554368.html
Copyright © 2011-2022 走看看