I need some help with UITableView. I’m looking for the best solution for creating edit table functionality. I have UITableViewController with data and two modes:
- Edit mode: All fields (like first name, last name, phone, web page etc…)
- View mode: Show only filed rows.
The difficult thing is to animate the rows when a user clicks the edit button.
I want the same animation we have in the address book app on iPhone.
I have solution!
Help from this article
So you need add something like this (thanks Sandy)
After that
– (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
– (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
will be colled, and you can edit list of cells and their appearance.