我有一个UItableview,它从数组和下拉列表中填充.如果我选择任何下拉列表行,则将插入具有新值的数组,并且应重新加载tableview.如何使用新的数组内容为tableview设置动画?提前致谢
动画,我想逐一显示行.我尝试过这种方法
- (void)reloadRowsAtIndexPaths:(NSArray )indexPaths withRowAnimation:(UITableViewRowAnimation)animation {
NSIndexPath rowToReload = [NSIndexPath indexPathForRow:[names count] inSection:0];
NSArray* rowsToReload = [NSArray arrayWithObjects:rowToReload, nil];
[tableDetails reloadRowsAtIndexPaths:rowsToReload withRowAnimation:UITableViewRowAnimationNone];
}
Run Code Online (Sandbox Code Playgroud)