RKOControls
我的一个控件库。每个单独的控件都支持CocoaPods
。
目录
RKOControl
RKONetworkAlert
详细说明见以下地址:RKONetworkAlert
集成:
pod 'RKONetworkAlert', '~> 1.0.0'
使用:
+ (void)popAlert;
RKOTextView
详细信息请见以下地址:RKOTextView
集成方法:
pod 'RKOTextView', '~> 1.1.0'
基本使用方法:
// 设置大小位置。
CGRect frame = CGRectMake(15, 250, 340, 100);
// 设置样式。
RKOTextView *textViewWithCode = [RKOTextView textViewWithFrame:frame
placeholder:@"纯代码创建..."
font:[UIFont systemFontOfSize:18]
limitInputRange:YES
maxCharacters:50
maxRows:3];
// 需要边框,默认不显示。
textViewWithCode.needBorder = YES;
// 添加视图
[self.view addSubview:textViewWithCode];
RKOTopAlert
详细信息请见以下地址:RKOTopAlert
集成方法:
pod 'RKOTopAlert', '~> 1.1.0'
使用方法:
RKOTopAlert *topAlert = [RKOTopAlert alertViewWithText:@"单独设置提示文字"
textColor:[UIColor whiteColor]
backgroundColor:[UIColor redColor]
iconImageName:nil
font:[UIFont systemFontOfSize:15.0f]];
[topAlert alertAppearWithDuration:2.0];
RKOTools
向大家推荐我写的另一个工具库。最初这个控件库和工具库是一个库,后来考虑到冗余问题,所以将控件库独立出来。
地址:RKOTools
集成:
pod 'RKOTools', '~> 1.4.4'
BLOG
我在课余时间利用HEXO在GitHub上搭建的个人博客。未来,部分工具将会对应相应的博客文章。以下是博客的地址:
喵喵喵