Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私は目的の c に非常に慣れていないので、UITableviewCell 内のデータの順序を変更する方法を知りたいので、常に最新のデータが UITableView の上部にあり、下部にはありません。それが今起こるように?
順序を変更する必要はありません...開始インデックスに常に最新のデータが含まれるように配列を埋めるだけです!!!
データ ソース (ほとんどの場合は NSArray) を並べ替えてから呼び出します。
[tableView reloadData];
tableView はデータ ソースを再度反復処理し、配列の順序でセルを表示します。