Quantcast
Channel: UITableViewCell animate resize when user touchdown or tap Cell - Stack Overflow
Viewing all articles
Browse latest Browse all 5

Answer by Daniyar for UITableViewCell animate resize when user touchdown or tap Cell

$
0
0

Try this

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath)path// or it must be some other method{  [self.tableView beginUpdates];  [[self.tableView reloadRowsAtIndexPaths:@[path] withRowAnimation:rowAnimation];  [self.tableView endUpdates];}

In your table view delegate methods you must know which cell is selected.

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath)path{  YourTableClass *cell=[tableView cellForRowAtIndexPath:path];  if(cell.isTaped)    return increasedHeight;  else    return defaultHeight;} 

Viewing all articles
Browse latest Browse all 5

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>