@interface AutoLabel ()
@property (nonatomic) CGFloat ff;
@property (nonatomic) BOOL isDone;
@end
@implementation AutoLabel
- (void)layoutSubviews {
[super layoutSubviews];
if (_isDone != true) {
_ff = self.font.pointSize;
_isDone = true;
}
CGSize sizee = [UIScreen mainScreen].bounds.size;
CGFloat ggH = sizee.height / 568.0;
self.font = [self.font fontWithSize:_ff*ggH];
}
@end