I am a newbie to iphone development and is not able to understand various methods and all. I want to create a collapsible table view which expands and collapse on click of a button.
I have following pieces in my puzzle
1) I guess I will have to use these two methods for animation
[collapsibleTableView deleteRowsAtIndexPaths:editableIndexArray withRowAnimation:UITableViewRowAnimationTop ];
[collapsibleTableView insertRowsAtIndexPaths:editableIndexArray withRowAnimation:UITableViewRowAnimationTop ];
but I am not sure about argument which I need to pass to deleteRowsAtIndexPath: method and insertRowsAtIndexPath: method.
2) I have an array which is the datasource for this table.
It would be great if you can make me understand how it exactly needs to be done.
got the answer and the implementation is