PDA

View Full Version : expandable row in uitableview




chhoda
Jun 30, 2010, 01:11 AM
Hi All.

I have an UITableView which looks monotonous in all rows. On click of the rows i am presenting a viewcontroller.view through navigationcontroller.

now, i need something like this. on click of the row [uitableviewcell] it should expand and show some info. i click once more/ it shrinks and closes info. if i click another cell, that cell expands and this previously expanded row shrinks.

Can anybody give some pointers on how to achieve this ?

Thanks in advance

--CH



seepel
Jun 30, 2010, 04:25 AM
In UiTableviewDelegate have a look at
tableview:heightForRowAtIndexPath:

and in UITableview have a look at
reloadRowsForIndexPaths:withRowAnimation: