测试已测试 | ✗ |
Lang语言 | Obj-CObjective C |
许可证 | MIT |
发布最后发布 | 2016年4月 |
由 AlexanderBalabanov、MaxPetrovsky 维护。
依赖 | |
UIColor+InputMethods | >= 0 |
UIImage+ImageWithColor | >= 0 |
RMStyleManager 是为您的应用程序提供的样式管理器,可以在 xibs、storyboards 和代码中工作。您可以通过在组件用户信息中设置样式字段来设置样式。要定义样式,只需为 RMStyleManager 创建一个分类。从组件中将使用来自样式管理器的样式字符串。
如果您想要动态样式,可以简单地使用
+ (id)style1
{
....
}
+ (id)style2
{
....
}
+ (id)dynamicStyle
{
if (condition)
{
return [self style1];
}
return [self style2];
}
To reload all styles call :
[RMStyleManager reloadAllStyles];
要运行示例项目,克隆仓库,并首先从 Example 目录中运行 pod install
RMStyleManager 通过 CocoaPods 提供。要安装它,只需将以下行添加到您的 Podfile 中
pod 'RMStyleManager', :git => 'https://github.com/byzyn4ik/RMStyleManager'
Maks Petrovsky,[email protected]
Alexander Balabanov,[email protected]
RMStyleManager 在 MIT 许可下提供。有关更多信息,请参阅 LICENSE 文件。