jjzjj

calloutLabel

全部标签

ios - 使用自动布局创建的 UILabel 不显示 NSMutableAttributedString 的属性

我有一个UILabel对象,calloutLabel,它是使用编程自动布局创建的:-(void)setupCalloutLabel{UILabel*calloutLabel=[UILabelnewAutoLayoutView];calloutLabel.backgroundColor=[UIColorclearColor];calloutLabel.textAlignment=NSTextAlignmentCenter;calloutLabel.numberOfLines=2;_calloutLabel=calloutLabel;[selfaddSubview:calloutLabel