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、顶部下拉弹出消息条