I am trying to dynamically show/hide table rows/sections when turning a UISwitch on or off. This behavior can be seen when switching wifi on or off on the iphone, as you can see the rows below it being shown or hidden.
Any idea on how this is done?
I am trying to dynamically show/hide table rows/sections when turning a UISwitch on or off. This behavior can be seen when switching wifi on or off on the iphone, as you can see the rows below it being shown or hidden.
Any idea on how this is done?
Check following methods of UITableView: deleteRowsAtIndexPaths:withRowAnimation
, deleteSections:withRowAnimation
, insertRowsAtIndexPaths:withRowAnimation
, insertSections:withRowAnimation
.