UITableView
配列とドロップダウンリストから取り込まれたものがあります。
ドロップダウンリストの行を選択すると、配列に新しい値が挿入され、テーブルビューがリロードされます。
新しい配列の内容でテーブルビューをアニメーション化する方法は?
1行ずつ表示したいアニメーションのようなものです。私はこの方法を試しました
- (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];
}