我想将一行移动到我的 UITableView
的底部,并具有很酷的动画效果,就像 this Grocery Shopping List app 中一样.
就像我们可以使用重新排序控件移动行一样:
如何创建这样的动画?
最佳答案
在 IOS 5 中,可以使用以下 UITableView
选择器来完成此操作:
- (void)moveRowAtIndexPath:(NSIndexPath *)indexPath toIndexPath:(NSIndexPath *)newIndexPath
例如:
[self.tableView moveRowAtIndexPath:indexPath toIndexPath:[NSIndexPath indexPathForRow:[items count] - 1 inSection:1]];
关于iphone - 在 UITableView 中以编程方式移动带动画的行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2313252/