没有合适的资源?快使用搜索试试~ 我知道了~
UILabelMoreColorsText:UILabel + textMoreColor
共24个文件
m:7个
h:4个
plist:4个
需积分: 9 0 下载量 102 浏览量
2021-05-08
11:57:27
上传
评论
收藏 34KB ZIP 举报
温馨提示
有的时候我们想一个label的text中出现不同的颜色,而且label出现的地方也很多。 以下是我自己写的: @implementation UILabel(MoreColorsText) -(void)setAttributeLabelWithtextColorPairs:(NSArray*)colorTextPairs { //获取Label的带属性字符串 NSMutableAttributedString *attrStr = [[NSMutableAttributedString alloc] initWithAttributedString:self.attributedText]; NSString *text = self.text; NSRange oriRange = NSMakeRange(0, 0), changed
资源推荐
资源详情
资源评论
收起资源包目录
UILabelMoreColorsText-master.zip (24个子文件)
UILabelMoreColorsText-master
UILabelDemoTests
UILabelDemoTests.m 917B
Info.plist 733B
readme.md 2KB
UILabelDemo
Assets.xcassets
AppIcon.appiconset
Contents.json 585B
main.m 340B
UIColor+ColorWithNSString.m 2KB
AppDelegate.h 283B
AppDelegate.m 2KB
UILabel+MoreColorsText.h 405B
Base.lproj
LaunchScreen.storyboard 2KB
Main.storyboard 3KB
UILabel+MoreColorsText.m 2KB
ViewController.h 221B
Info.plist 1KB
UIColor+ColorWithNSString.h 449B
ViewController.m 689B
UILabelMoreColorsText.xcodeproj
project.xcworkspace
contents.xcworkspacedata 223B
xcuserdata
zhangyafeng.xcuserdatad
UserInterfaceState.xcuserstate 20KB
project.pbxproj 22KB
xcuserdata
zhangyafeng.xcuserdatad
xcschemes
xcschememanagement.plist 663B
UILabelDemo.xcscheme 4KB
xcdebugger
Breakpoints_v2.xcbkptlist 91B
UILabelDemoUITests
Info.plist 733B
UILabelDemoUITests.m 1KB
共 24 条
- 1
资源评论
WillisWang
- 粉丝: 23
- 资源: 4701
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功