Can we resize the width of the row of a UITableView.
+1
A:
What exactly are you trying to accomplish?
I'm not 100%, but I am pretty sure each row is going to be with same width as the parent table. However, if you have a custom UITableViewCell, you can make it transparent, and organize your objects on the cell's view to mimic a different sized cell. For example if you wanted a cell to be 50px less wide than the other cells and indented, you could place a white UIView on the transparent cell, make it 50px less wide than it should be, and position it to the right.
Make sense?
Dutchie432
2009-07-23 18:39:07
Well Yeah, programatically we can do any thing but I wanted to know if there is some way we can call the delegate to resize it.
rkb
2009-07-23 19:24:17
There is no delegate method to control the width of a row. It wouldn't be meaningful, since a UITableView is a stack of rows. The UITableView wouldn't know what to draw in the space that was left over. If you wanted to teach it what to do, you of course can subclass UITableView or possibly UITableViewCell, though I don't believe it's intended to be subclassed this way.
Rob Napier
2009-07-23 23:36:59
A:
Only if you fit the whole table into a smaller area.
Kendall Helmstetter Gelner
2009-07-23 20:03:21