So I just tried subclassing UITableViewHeaderFooterView
and aligning the labels the way I want by overriding -layoutSubviews
.
When I call super
and change a label's frame
, however, the app appears to be stuck in an infinite -layoutSubviews
loop.
My code looks like this:
- (void)layoutSubviews
{
[super layoutSubviews];
self.textLabel.frame = CGRectMake(10.0, 10.0, 300.0, 40.0);
}
Any ideas on how to fix this?