文章来源:淘论文网   发布者: 毕业设计   浏览量: 26



还可以点击去查询以下关键词:
[单独]    [设置]    [边缘]    [layerborder]    [可单独设置边缘layerborder]   

项目介绍:

后面会陆续的进行维护,后期考虑添加
目前已经支持pod 'UIView+RITLBorders'

如果有帮助,欢迎Star

圆角控制

渐变色边缘

目前开放的接口如下:

/// 使用layer的borderWidth统一设置 - (void)ritl_addBorderWithInset:(UIEdgeInsets)inset Color:(UIColor *)borderColor direction:(RITLBorderDirection)directions; /// 使用layer的borderColor统一设置 - (void)ritl_addBorderWithInset:(UIEdgeInsets)inset BorderWidth:(CGFloat)borderWidth direction:(RITLBorderDirection)directions; /// 各项的间距为UIEdgeInsetsZero - (void)ritl_addBorderWithColor:(UIColor *)borderColor BodrerWidth:(CGFloat)borderWidth direction:(RITLBorderDirection)directions; /// 自定义的layer设置 - (void)ritl_addBorderWithInset:(UIEdgeInsets)inset Color:(UIColor *)borderColor BorderWidth:(CGFloat)borderWidth direction:(RITLBorderDirection)directions; /// 移除当前边框 - (void)ritl_removeBorders:(RITLBorderDirection)directions; /// 移除所有追加的边框 - (void)ritl_removeAllBorders;

上面的实例设置代码如下:

[self.left ritl_addBorderWithColor:UIColor.blackColor BodrerWidth:2 direction:RITLBorderDirectionLeft]; [self.top ritl_addBorderWithColor:UIColor.orangeColor BodrerWidth:2 direction:RITLBorderDirectionTop]; [self.right ritl_addBorderWithColor:UIColor.greenColor BodrerWidth:2 direction:RITLBorderDirectionRight]; [self.bottom ritl_addBorderWithColor:UIColor.yellowColor BodrerWidth:2 direction:RITLBorderDirectionBottom]; #pragma mark - [self.leftRight ritl_addBorderWithColor:UIColor.cyanColor BodrerWidth:2 direction:RITLBorderDirectionLeft|RITLBorderDirectionRight]; [self.topBottom ritl_addBorderWithColor:UIColor.purpleColor BodrerWidth:2 direction:RITLBorderDirectionTop|RITLBorderDirectionBottom]; [self.custom ritl_addBorderWithColor:UIColor.orangeColor BodrerWidth:1.5 direction:RITLBorderDirectionLeft]; [self.custom ritl_addBorderWithColor:UIColor.blueColor BodrerWidth:1 direction:RITLBorderDirectionTop]; [self.custom ritl_addBorderWithColor:UIColor.redColor BodrerWidth:2 direction:RITLBorderDirectionBottom];

开题报告开题报告

这里还有:


还可以点击去查询:
[单独]    [设置]    [边缘]    [layerborder]    [可单独设置边缘layerborder]   

请扫码加微信 微信号:sj52abcd


下载地址: http://www.taolw.com/down/1985.docx
  • 上一篇:DebugMan - 强大毕业设计的iOS调试利器
  • 下一篇:9种自由选择动画样式毕业设计的第三方上下拉刷新库