- 授权协议: MIT
- 开发语言: Swift
- 操作系统: OS X
- 软件首页: https://github.com/146BC/StyleKit
- 软件文档: https://github.com/146BC/StyleKit/blob/develop/README.md
- 官方下载: https://github.com/146BC/StyleKit/archive/develop.zip
软件介绍
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
程序员的自我修养
俞甲子、石凡、潘爱民 / 电子工业出版社 / 2009-4 / 65.00
这本书主要介绍系统软件的运行机制和原理,涉及在Windows和Linux两个系统平台上,一个应用程序在编译、链接和运行时刻所发生的各种事项,包括:代码指令是如何保存的,库文件如何与应用程序代码静态链接,应用程序如何被装载到内存中并开始运行,动态链接如何实现,C/C++运行库的工作原理,以及操作系统提供的系统服务是如何被调用的。每个技术专题都配备了大量图、表和代码实例,力求将复杂的机制以简洁的形式表......一起来看看 《程序员的自我修养》 这本书的介绍吧!
