GXSlideSegmentController仿网易新闻侧滑视图
看了仿网易新闻侧滑视图的例子都不是很满足我要的效果,就自己写了个,侧滑视图容器上下联动。
使用方法:
NSMutableArray *vcs = [NSMutableArray array]; for (int i = 0; i < 10; i++) { UIViewController *vc = [[UIViewController alloc] init]; vc.title = [NSString stringWithFormat:@"%d", i]; vc.view.backgroundColor = [UIColor colorWithRed:((255.0 * (i%2)) / 255) green:((255.0 * ((i+1)%2)) / 255) blue:((255.0 * ((i+2)%2)) / 255) alpha:1]; [vcs addObject:vc]; } GXSlideSegmentController *slideSegmentController = [[GXSlideSegmentController alloc] initWithViewControllers:vcs]; slideSegmentController.title = @"GXSlideSegmentController"; slideSegmentController.indicatorInsets = UIEdgeInsetsMake(0, 8, 0, 8); slideSegmentController.indicator.backgroundColor = [UIColor redColor]; slideSegmentController.indicator.layer.cornerRadius = slideSegmentController.indicator.frame.size.height/2; [self.navigationController pushViewController:slideSegmentController animated:YES]
评论
GXSlideSegmentController仿网易新闻侧滑视图
看了仿网易新闻侧滑视图的例子都不是很满足我要的效果,就自己写了个,侧滑视图容器上下联动。使用方法:NSMutableArray *vcs = [NSMutableArray array];for (i
GXSlideSegmentController仿网易新闻侧滑视图
0
仿网易新闻的滑动视图布局
仿网易新闻的滑动栏目切换视图控件,具有以下特色:1.支持手势左右滑动切换栏目视图。2.支持点击栏目标题切换视图。3.支持滑动到左边缘,拉出抽屉式菜单。[Code4App.com]
仿网易新闻的滑动视图布局
0
blur_comment仿网易新闻评论页面
blur_comment是仿网易新闻弹出带虚化背景评论:1.带动画虚化背景2.评论随键盘高度实时变化使用方式: 1.#import"BlurCommentView.h" 2.[BlurComme
blur_comment仿网易新闻评论页面
0