Iphone dev: dynamically resize UITableView?

Perhaps try to adjust the height using the UITableViewDelegate method: – tableView:heightForRowAtIndexPath: http://developer.apple.com/iphone/library/documentation/uikit/reference/UITableViewDelegate%5FProtocol/Reference/Reference.html#//apple%5Fref/occ/intf/UITableViewDelegate This may adjust the hit areas properly for you Edit: I just ran across this link which might be relevant: cimgf.com/2009/09/23/uitableviewcell-dyn....

Perhaps try to adjust the height using the UITableViewDelegate method: – tableView:heightForRowAtIndexPath: http://developer.apple.com/iphone/library/documentation/uikit/reference/UITableViewDelegate%5FProtocol/Reference/Reference.html#//apple%5Fref/occ/intf/UITableViewDelegate This may adjust the hit areas properly for you. Edit: I just ran across this link which might be relevant: cimgf.com/2009/09/23/uitableviewcell-dyn....

We actually did try that and it did not work, but we will try again.. – Nir Levy Jul 20 '09 at 5:50 well, no. It's not working. HeightForRowAtIndexPath gets called only on table creation.

What we are doing is do change the cell's height dynamically when the user touches it. – Nir Levy Jul 28 '09 at 6:17 1 Surely tableView:heightForRowAtIndexPath: gets called when you reload the table view as well? Adjust the height in that method then call tableView reloadData perhaps?

– Alasdair Allan Aug 18 '09 at 16:46 We used Ben & Alasdair's suggestions and every time a user touched a cell we had to tableView reloadData. Moreover, since heightForRowAtIndexPath should not call cellForRowAtIndexPath we had to keep a separate array indicating which row was "open" and which "closed" - change that array from the didSelectRow.. and read it from heightForRow.. . (yes, it's a simple design pattern, we just missed it by an inch) – Nir Levy Sep 2 '09 at 18:46.

We have a UITableView inside which we have (obviously) many UITableViewCells. We need to implement an action so that when the user touches the cell, the cell grows and shows more information. If the user touches the cell again, it resizes back to the original size.

And also moving all the other cells textHeight pixels down. Any clues on we are doing wrong?

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions