------ 文章開始 ------

 - (IBAction)blue:(id)sender 
{
   [self.tableView beginUpdates];
    [dataArray addObject:@"ABC"];
    int count=[dataArray count];
    NSIndexPath *indexPath=[NSIndexPath indexPathForRow:count-2 inSection:0];
    NSArray *array=[NSArray arrayWithObject:indexPath];
    [self.tableView insertRowsAtIndexPaths:array withRowAnimation:UITableViewRowAnimationTop];
    [self.tableView reloadData];
}
------ 文章結尾 ------

[複製網址] [開新視窗] [檢舉短網址] [QR條碼]

服務條款 - 加入會員(免費) - 回報問題網址 - 聯絡偶們 -

© 2025 PPT.cc