UILabel *lable = [[UILabel alloc] initWithFrame:CGRectMake(0, 200, Width, 100)];
lable.numberOfLines=0;
[self.view addSubview:lable];
NSAttributedString *subStr1 = [[NSAttributedString alloc] initWithString:@"好傻好傻好傻好撒婚纱和撒谎莎婚纱和傻好傻好撒婚纱和撒谎莎婚纱和傻好傻好撒婚纱和撒谎莎婚纱和傻好傻好撒婚纱和撒谎莎婚纱和撒谎莎莎婚纱"
attributes:@{NSForegroundColorAttributeName:[UIColor redColor],
NSFontAttributeName:[UIFont systemFontOfSize:15]
}];
NSAttributedString *subStr2 = [[NSAttributedString alloc] initWithString:@"哈哈哈哈
UILable换行底部增加图片
最新推荐文章于 2021-12-27 14:37:55 发布