Re: UITableViewCells
Re: UITableViewCells
- Subject: Re: UITableViewCells
- From: WT <email@hidden>
- Date: Mon, 29 Jun 2009 00:41:59 +0200
On Jun 29, 2009, at 12:00 AM, William Squires wrote:
Question 1:
Looking in the debugger, I can see the argument "indexPath" is not
nil, but there's no "row" property shown by the debugger when I
expand it. Why didn't I get an exception for "indexPath does not
respond to selector 'row'"? And what is the name of the property I
need here?
-section and -row are defined in an extension to NSIndexPath. See here:
http://developer.apple.com/iphone/library/documentation/UIKit/Reference/NSIndexPath_UIKitAdditions/NSIndexPath_UIKitAdditions.pdf
Question 2:
I get a warning for "setText:" is deprecated for UITableViewCell.
What is the Apple-approved way of setting this now?
You must access the cell's text label, and then set the label's text:
cell.textLabel.text = [NSString stringWithFormat:@"%@ - %@",
full_name, score];
See the UITableViewCell documentation for details.
Wagner
_______________________________________________
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