Re: Adding Mutiple Lines to a UITableView
Re: Adding Mutiple Lines to a UITableView
- Subject: Re: Adding Mutiple Lines to a UITableView
- From: Shao Xianbiao <email@hidden>
- Date: Thu, 20 May 2010 10:06:03 +0800
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@hidden>
> 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@hidden)
>
> 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:
>
> This email sent to email@hidden
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden