08 2021 档案
摘要://.h文件 #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN @interface SFYStrokeLabel : UILabel /** 描多粗的边*/ @property (nonatomic, assign) NSInteger outLine
阅读全文
摘要://创建uilabel并设置大小范围 UILabel * label1 = [[UILabel alloc]initWithFrame:CGRectMake(20,20,[UIScreen mainScreen].bounds.size.width - 40,[UIScreen mainScreen
阅读全文
摘要:首先要创建一个带有属性的字符串NSMutableAttributedString NSMutableAttributedString *attrString = [[NSMutableAttributedString alloc] initWithString:@"这是一个富文本字符串"]; /*
阅读全文