Hi,
the following may be what you want:
- (id) initWithStyle:(UITableViewStyle)style {
....
[self.tableView setRowHeight:SOME_PROPER_HEIGHT];
.....
}
- (UITableViewCell *)tableView:(UITableView *)tableView
cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
.....
[cell.textLabel setNumberOfLines:0];
......
[cell.textLabel setText:YOUR_TEXT];
.....
}
2010/5/20 Nick Rawlins <[email protected]>
> Hi,
>
> Does anyone have any suggestions or examples on adding more than 2 lines to
> a UITableView row on the iPhone?
>
>
> I am using textLabel and detailTextLabel at present but wish to also add a
> 3rd and 4th line.
>
>
> Best Regards,
>
> Nick
> _______________________________________________
>
> 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/shao.xianbiao%40gmail.com
>
> 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]