iPhone SDK 3.0 deprecation of UITableViewCell .text

Posted by djt9000 on Stack Overflow See other posts from Stack Overflow or by djt9000
Published on 2009-07-27T02:00:14Z Indexed on 2010/03/27 14:03 UTC
Read the original article Hit count: 202

Filed under:

Came across an SDK3.0 deprecation that I am having a bit of trouble tryinig to figure out. If my declaration of

@property (nonatomic, retain) UIImage *rowImage;

does not work, nor

@property (nonatomic, readonly, retain) UIImage *rowImage;

and I

@synthesize rowImage;

Do I need to write my own setter because @synthesize will not properly handle this?


cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:RootViewControllerCell] autorelease];

// Dpericated in SDK 3.0
//
//cell.text = controller.title;
//cell.image = controller.rowImage;

// Using what the documentation says to use Error===> cell.textLabel = controller.title;
Error===> cell.imageView = controller.rowImage;

Error: Object cannot be set - Either readonly property or no setter found.

Hope this makes sense, any help would be appreciated.

© Stack Overflow or respective owner

Related posts about iphone-sdk-3.0