views:

24

answers:

2

i need to decrease table view cell of navigation controller to 280*35.. i hav tried with cgrect its not working ...

how can i set

A: 

The width of a UITableViewCell is always determined by the width of the UITableView that contains it.

You can change the height of your Cell by using UITableViews delegate message tableView:heightForRowAtIndexPath:

tonklon
i want to set width as 280
lak in iphone
I perfectly understood that. Setting the width for the Table view to 280 is the only Way to Set the width of the Table Cell to 280. Why do you want to make it smaller? Perhaps an accessory View might fit your needs.
tonklon
A: 

You can set row height programmatically, as tonclon pointed out, or, if all rows need to get the same height, set it in Interface Builder as a propery of the UITableView, in de Inspector window under the size tab. It says "height" right at the top, that's the row height.

This is easier and (presumably) faster.

mvds