How to write a Custom UILabel Class
问题 In my project there is a huge number of UILabels available for each screen that's why I have created one separate class for UILabel and I want to set all label properties in that class. But label properties and label also not adding in my MainViewController . My code: CustomLabel: #import "CustomLabel.h" @implementation CustomLabel - (id) init { self = [super init]; if(self){ [self setupUI]; } return self; } - (void)setupUI { [self setBackgroundColor:[UIColor redColor]]; [self setTextColor: