StyleKit可配置 UI Style 工具库
StyleKit 是能让你使用一个简单的 JSON 文件美化你的应用的微框架。
它如何工作?
按如下格式创建一个 JSON 文件:
{ "UILabel": { "font": "HelveticaNeue-Bold:30.0", "backgroundColor": "#000FFF" }, "StyleKitDemo.SKView": { "StyleKitDemo.SKLabel": { "font": "HelveticaNeue-Bold:20.0", "backgroundColor": "#FFF000", "color": "#fff" }, "StyleKitDemo.SKButton": { "font": "HelveticaNeue-Light:20.0", "titleColor:normal": "#FFFFFF", "titleColor:highlighted": "#000000" } }, "StyleKitDemo.SKNavigationBar": { "titleTextAttributes": { "NSColor": "#000FFF", "NSFont": "HelveticaNeue-Bold:30.0" } }, "StyleKitDemo.SKTextField": { "font": "HelveticaNeue-Light:20.0", "textColor": "#000FFF" } }
加载 JSON 文件
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { if let styleFile = NSBundle.mainBundle().URLForResource("style", withExtension: "json") { StyleKit(fileUrl: styleFile)?.apply() } return true }
安装:
Carthage
github "146BC/StyleKit" ~> 0.3
CocoaPods
Add the 146BC Source
source 'https://github.com/146BC/Specs.git' source 'https://github.com/CocoaPods/Specs.git'
pod 'StyleKit', '~> 0.3
评论
AndroidUIOAndroid UI 及 IO 工具库
Android UI 及 IO 工具库(基础框架) Android APP framework 是一
AndroidUIOAndroid UI 及 IO 工具库
0
AndroidUIOAndroid UI 及 IO 工具库
AndroidUI及IO工具库(基础框架)Android APP framework 是一个拖沓冗余的体系,正是因为他的不足,才需要我们去完善他。通用回调机制---- 有物混成,先天地生函数,是编程中
AndroidUIOAndroid UI 及 IO 工具库
0
qisuite高可配置性的数据查询配置工具
qisuite是一个高可配置性的基于webservice,com+的数据查询配置工具主要功能:更改后台xml的配置即可提供客户的查询提供一键打印多报表功能和在线设计报表支持历史模糊输入查询条件自动生成
qisuite高可配置性的数据查询配置工具
0
Std UI KitJavascript UI 库
StdUIKit是一套可以帮助你大幅缩短工作进程的高性能JavascriptUI组件合集StdUIKit是StdJS创建的,它包含了非常全面的常用UI组件,同时提供了一套完整的用户界面解决方案它能轻松
Std UI KitJavascript UI 库
0
Std UI KitJavascript UI 库
Std UI Kit 是一套可以帮助你大幅缩短工作进程的高性能 Javascript UI 组件合集
Std UI KitJavascript UI 库
0
NextUIReact UI 库
NextUI是美观、快速、现代的ReactUI库。特性基于TypeScript方便易用的自定义主题内置深色模式内置 Stitches工具支持SSR内置媒体查询
NextUIReact UI 库
0