Skip to content
This repository has been archived by the owner on Sep 6, 2019. It is now read-only.
/ RKOControls Public archive

自己的一个控件库。每一个单独的控件都支持CocoaPods。

License

Notifications You must be signed in to change notification settings

RakuyoKit/RKOControls

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RKOControls

自己的一个控件库。每一个单独的控件都支持CocoaPods

目录

  1. RKOControl
    1. RKONetworkAlert
    2. RKOTextView
    3. RKOTopAlert
  2. RKOTools
  3. BLOG

RKOControl

  • 版本号命名规则:
    1. 开头的版本号代表组织结构的版本。不修改组织结构的话该编码不变。
    2. 中间的版本号代表库中可用的组件数量。
    3. 末尾的版本号代表当前数量下的修复版本。

RKONetworkAlert

详情说明见地址:RKONetworkAlert

集成:

 pod 'RKONetworkAlert', '~> 1.0.0'

使用:

+ (void)popAlert;

RKOTextView

详情说明见地址:RKOTextView

集成:

 pod 'RKOTextView', '~> 1.1.1'

基本使用:

// 设置大小位置。
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.11.0'

BLOG

本人课余时间利用HEXO在GitHub上搭建的博客。未来部分工具会有对应的blog文章对应。在这里也把blog的地址贴出来吧:

喵喵喵