【文件属性】:
文件名称:motion-mastr:RubyMotion + iOS 7 及更高版本 + NSMutableAttributedString
文件大小:334KB
文件格式:ZIP
更新时间:2021-06-08 15:52:11
Ruby
运动大师
用于 iOS 7+ 的 RubyMotion 库以拥有 NSMutableAttributedString。
MASTR = 可变属性字符串
安装
将此添加到您的 Gemfile 中:
gem 'motion-mastr'
然后运行它来安装它:
bundle
要求
iOS 7 或更高版本
用法
include MotionMastr
这是一个MastrBuilder。
mastr # => MastrBuilder
您将使用它来构建您的NSMutableAttributeString s。
mastr . build # => NSMutableAttributeString
喂它一根绳子。
mastr ( "hello" ) . build
也喂它风格。
mastr ( "Grimace" , foreground_color : UIC
【文件预览】:
motion-mastr-master
----.travis.yml(326B)
----_pics()
--------mastr.gif(305KB)
----Rakefile(371B)
----motion-mastr.gemspec(896B)
----resources()
--------Default-736h@3x.png(431B)
--------Default-667h@2x.png(217B)
--------Default-568h@2x.png(169B)
----LICENSE(1KB)
----app()
--------app_delegate.rb(4KB)
----Gemfile(38B)
----Gemfile.lock(180B)
----spec()
--------background_color_attribute_spec.rb(965B)
--------font_attribute_spec.rb(822B)
--------underline_color_attribute_spec.rb(952B)
--------foreground_color_attribute_spec.rb(1KB)
--------link_attribute_spec.rb(991B)
--------paragraph_style_attribute_spec.rb(13KB)
--------shadow_attribute_spec.rb(3KB)
--------expansion_attribute_spec.rb(1KB)
--------mastr_builder_spec.rb(3KB)
--------attachment_attribute_spec.rb(912B)
--------text_effect_attribute_spec.rb(1KB)
--------stroke_color_attribute_spec.rb(913B)
--------stroke_width_attribute_spec.rb(1KB)
--------strikethrough_color_attribute_spec.rb(1004B)
--------ligature_attribute_spec.rb(1KB)
--------strikethrough_style_attribute_spec.rb(857B)
--------mastr_spec.rb(873B)
--------baseline_offset_attribute_spec.rb(1KB)
--------underline_style_attribute_spec.rb(3KB)
--------kern_attribute_spec.rb(1KB)
--------obliqueness_attribute_spec.rb(1KB)
----.gitignore(177B)
----lib()
--------motion-mastr.rb(315B)
--------motion-mastr()
----README.md(4KB)