• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Adding Mutiple Lines to a UITableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Adding Mutiple Lines to a UITableView (From: Nick Rawlins <email@hidden>)

  • Prev by Date: Re: iPhone/iPad: Desktop wallpaper can't be set.
  • Next by Date: NSWindowController for Prefs XIB Question (Core Data involved)
  • Previous by thread: Re: Adding Mutiple Lines to a UITableView
  • Next by thread: NSData from CGPDFPageRef
  • Index(es):
    • Date
    • Thread