I have a subclassed UITableViewCell.
I need to dynamically change the frame of a UILabel.
Here\'s what I\'ve done:
- (UITableViewCell *)table
There must be something wrong there.
Try, just for testing to implement this:
tableView:willDisplayCell:forRowAtIndexPath:
Like
- (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath
{
MessageCell* aCell = (MessageCell*)cell;
aCell.Content.Text = @"Content!";
[aCell.Content setFrame:CGRectMake(0, 0, 10, 10)];
}
What's the result?