Is there anything currently in the SDK that allows you to reorder tableView sections? As in, move the entire section below or above the neighboring section? This is plausible for individual UITableViewCells. However, they did not see this for sections.
Maybe not perfect, but pretty simple, so you should consider: Add up / down buttons to the section headers. Down the first, up the last and up and down all the rest. Then respond to button presses by reordering the table programmatically. Up moves the section up, and down moves the section down. Martin
There is no built-in touch API for moving sections of a table view — you will have to do this programmatically and then send a message [tableView reloadData]or the like.
[tableView reloadData]
, , UITableViewCell UITableView, , "" UITableViewCells. "" , - , .
, , reloadData , " " (, ?), , . , .
I tried to move rows from one section to another, while, of course, updating the data source. But that seemed impossible. The only results I got were empty cells between them, incorrect contents in sections, incorrect ordering of sections.
Source: https://habr.com/ru/post/1708566/More articles:weird IE7 behavior jQuery height () - javascriptHow to use CVS in TestComplete? - version-controlInstall rails plugins as git submodules - ruby-on-railsShould sites be registered in a separate table for active users? - registrationHow to create a GDI leak in Windows Forms! - winformsJQuery: choosing images with a specific source? - jquerySilverlight: шифрование имени пользователя и пароля для веб-службы - encryptionЗначение типа '' не может быть преобразовано в - unit-testingIs there a good ready-made expert system engine? - artificial-intelligenceКак настроить связь "многие-ко-многим" с таблицей переходов с помощью JPA/EclipseLink - javaAll Articles