-(void)setRowHeight:(NSInteger)rowHeight;
-(NSInteger)rowHeight;
in UITableView
or you can use
-(NSInteger)tableView:(UITableView*)tableView
heightForRowAtIndexPath:(NSIndexPath*)indexPath
in UITableViewDelegate if you want them all to be different (sounds like you
don't however). And note the performance warning if you use that method.
That all works fine for me. The problem *I* have it getting the UITableView to
resize cells horizontally. My tableview is 200px wide, my example cell is
something like 800px wide (just because that's how big the template ended up
when I was drawing it) and yet once in the tableview it ends up about 380 px
wide and I really haven't figured out why. I believe I have all the auto-sizing
parameters set up right because it resizes in the vertical just fine. Anyway ..
not your question.
On 11-Oct-2010, at 6:24 PM, Remco Poelstra wrote:
>
> Hi,
>
> I've designed a UITableViewCell in Interface Builder which is 64 points heigh.
> When I load it into the UITableView, the rows are still there original size,
> so all cells now have overlapping content.
> Do I need to specify the new height somewhere?
> I load the cell as follows (as per Apple's recommendation):
> if (cell == nil) {
> [[NSBundle mainBundle] loadNibNamed:@"AudionetTableViewCell" owner:self
> options:nil];
> cell=self.newCell;
> self.newCell=nil;
> }
>
> Thanks in advance.
>
> Kind regards,
>
> Remco Poelstra
> _______________________________________________
>
> Cocoa-dev mailing list ([email protected])
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/rols%40rols.org
>
> This email sent to [email protected]
_______________________________________________
Cocoa-dev mailing list ([email protected])
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]