zoukankan      html  css  js  c++  java
  • uitable view自带的动画效果

     NSArray *insertIndexPaths = [NSArray arrayWithObjects:

    [NSIndexPath indexPathForRow:indexPath.row+1 inSection:0],

    [NSIndexPath indexPathForRow:indexPath.row+2 inSection:0],

    [NSIndexPath indexPathForRow:indexPath.row+3 inSection:0],

    [NSIndexPath indexPathForRow:indexPath.row+4 inSection:0],

    nil];

    [regionList insertObject:record atIndex:indexPath.row+1];

    [regionList insertObject:record atIndex:indexPath.row+2];

    [regionList insertObject:record atIndex:indexPath.row+3];

    [regionList insertObject:record atIndex:indexPath.row+4];


    [regionListTableView beginUpdates];

    [regionListTableView insertRowsAtIndexPaths:insertIndexPaths withRowAnimation: UITableViewRowAnimationTop];

    [regionListTableView endUpdates];

  • 相关阅读:
    四十八.监控概述 、 Zabbix基础 、 Zabbix监控服务
    123D
    bzoj3879
    bzoj1699
    LA6878
    uoj#149
    687C
    codeforces round #424 div2
    803E
    713C
  • 原文地址:https://www.cnblogs.com/luyinghuai/p/2007599.html
Copyright © 2011-2022 走看看