Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @property (nonatomic, retain) UIImage *rowImage;
- @property (nonatomic, readonly, retain) UIImage *rowImage;
- @synthesize rowImage;
- <hr>
- cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:RootViewControllerCell] autorelease];
- // Dpericated in SDK 3.0 <br>
- //<br>
- //cell.text = controller.title;<br>
- //cell.image = controller.rowImage;<br>
- // Using what the documentation says to use
- Error===> cell.textLabel = controller.title;<br>
- Error===> cell.imageView = controller.rowImage;<br>
- Error: Object cannot be set - Either readonly property or no setter found.
- cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:RootViewControllerCell] autorelease];
- [[cell textLabel] setText:[controller title]]; <br>
- [[cell imageView] setImage:[controller rowImage]];
- cell.textLabel.text = controller.title;
Add Comment
Please, Sign In to add comment