I got an app with some tables.
In this table there are two labels – the textLabel with titles and the detailTextLabel with dates. But when title is really long, it is showed over the detailTextLabel.
How can I solve this problem?
P.S.
I tried to override layoutSubviews method in this way:
- (void)layoutSubviews {
[super layoutSubviews];
CGSize size = self.bounds.size;
CGRect frame = CGRectMake(4.0f, 4.0f, size.width, size.height);
self.textLabel.frame = frame;
self.textLabel.contentMode = UIViewContentModeScaleAspectFit;
}
But it doesn’t work
Firstly i create empty cell. Then add there UILabel as subView with tag. And change UILabel’s frame