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 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]

Reply via email to