BOString:像老板一样创建NSAttributedString!

时间:2024-02-23 20:01:24
【文件属性】:

文件名称:BOString:像老板一样创建NSAttributedString!

文件大小:48KB

文件格式:ZIP

更新时间:2024-02-23 20:01:24

objective-c cocoapods nsattributedstring Objective-CObjective-C

NSAttributedString NSAttributedString API并非十全十美,这不是秘密。 基于NSDictionary,它看起来丑陋,反操作且难以维护... NSMutableAttributedString *attributedString = [[ NSMutableAttributedString alloc ] initWithString: @" Test attributed string " attributes: @{ NSForegroundColorAttributeName : [UIColor greenColor ], NSFontAttributeName : [fnt fontWithSize: 20 ]}]; [attributedString addAttributes: @{ NSForegroundColorAttributeName : [UIColor redColor ] , NSFontAttributeName : [fnt2 fontWithS


【文件预览】:
BOString-master
----.travis.yml(460B)
----BOString.podspec(719B)
----Podfile(470B)
----BOString.xcworkspace()
--------contents.xcworkspacedata(181B)
----LICENSE(1KB)
----BOString()
--------NSString+BOString.h(1KB)
--------NSAttributedString+BOString.h(2KB)
--------BOStringMaker.h(18KB)
--------BOStringMaker.m(18KB)
--------BOStringAttribute.h(1KB)
--------NSString+BOString.m(502B)
--------BOStringAttribute.m(526B)
--------NSAttributedString+BOString.m(542B)
--------BOString.h(266B)
----Examples()
--------BOStringDemo()
--------BOStringDemo.xcodeproj()
--------BOStringTests()
--------BOStringDemo_OSX()
--------BOStringDemo_OSXTests()
----.gitignore(266B)
----CHANGELOG.md(642B)
----AppledocSettings.plist(1KB)
----Tests()
--------BOStringTests.m(31KB)
----README.md(7KB)

网友评论