iOS第三方库使用记录

1、多个控制器滚动切换

YZDisplayViewController

https://www.jianshu.com/p/b45655e23a42

https://github.com/iThinkerYZ/YZDisplayViewController

- (void)viewDidLoad {

    [super viewDidLoad];

    self.hiddenNavBar = YES;

    self.view.backgroundColor = [UIColor clearColor];

    UIImageView *imgView = [[UIImageView alloc] init];

    [self.view insertSubview:imgView atIndex:0];

    [imgView setImage:[UIImage imageNamed:@"bg_paihan"]];

    [imgView makeConstraints:^(MASConstraintMaker *make) {

        make.leading.trailing.top.equalTo(0);

        make.height.equalTo(446);

    }];

    [self setUpChildViewController];

    self.titleMargin = 0;

    self.customLabelWidth = YES;

    self.titleViewsHorizonCenter = YES;

    self.leftLayoutMargin = 20;

    [self setUpTitleEffect:^(UIColor *__autoreleasing *titleScrollViewColor, UIColor *__autoreleasing *norColor, UIColor *__autoreleasing *selColor, UIFont *__autoreleasing *titleFont,UIFont *__autoreleasing *selTitleFont, CGFloat *titleHeight, CGFloat *titleWidth) {

        *titleScrollViewColor = RGBClear;

        *titleFont = [UIFont fontWithName:@"PingFangSC-Semibold" size:18];

        *selTitleFont = [UIFont fontWithName:@"PingFangSC-Semibold" size:30];

        *norColor = RGBHex(@"FDDCE6");

        *selColor = RGBWhite;

        *titleWidth = 90;

        *titleHeight = 60;

    }];

    [self setUpTitleGradient:^(YZTitleColorGradientStyle *titleColorGradientStyle, UIColor *__autoreleasing *norColor, UIColor *__autoreleasing *selColor) {

    }];

}

- (void)setUpChildViewController {

    UIViewController *vc1 = [[UIViewController alloc] init];

    vc1.title = @"标题一";

    [self addChildViewController:vc1];

    UIViewController *vc2 = [[UIViewController alloc] init];

    vc2 = @"标题二";

    [self addChildViewController:treasure];

    UIViewController *vc3 = [[UIViewController alloc] init];

    vc3 = @"标题三";

    [self addChildViewController:room];

}

2、同一个TableView的左右刷新

https://blog.csdn.net/s12117719679/article/details/88668876

 

3、图片选择器:TZImagePickerController

 

4、一行代码完成“空TableView占位视图”管理

CYLTableViewPlaceHolder

https://www.jianshu.com/p/0a5f6b221ab6

https://github.com/ChenYilong/CYLTableViewPlaceHolder#与其他框架的区别

 

5、几种动画的效果

https://blog.csdn.net/zhonggaorong/article/details/52869842

 

6、顶部下拉弹出消息条

https://github.com/JunAILiang/JMNotifyView

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值