I created a new custom TableViewCell by subclassing UITableViewCell. I created a table view with a UIImage view using the tip and I connected it to the viewpoints. Then, populating the table from my TableView delegate, I used a subclass for the display cells of the return table.
New content is being downloaded from nib. But the new cell size of the custom table view (I changed the size of the table cell to a new large size) does not load into the table view.
Am I missing any call during rendering? Please, help
@interface AccountOption : UITableViewCell { IBOutlet UIImageView* optionIcon; } @property (nonatomic, retain) IBOutlet UIImageView* optionIcon; @end
In the delegate
NSArray* topLevelObjects = [[NSBundle mainBundle] loadNibNamed:@"AccountOption" owner:nil options:nil]; for (id currentCell in topLevelObjects) { if ([currentCell isKindOfClass:[AccountOption class]]) { cell = currentCell; } } cell.optionIcon.image = [(NSDictionary*)[accountOptions objectAtIndex:indexPath.row] objectForKey:@"icon"]; return cell;
source share