Skip to content

kavin-zhou/ZKSlideViewController

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ZKSlideViewController

微博发现模块左右滑动 ViewController 效果

intro.gif

使用方法

  1. 创建一个容器控制器,继承自ZKSlideViewController
  2. 初始化子控制器
- (void)viewDidLoad {
    [super viewDidLoad];
    [self setupChildViewControllers];
}

- (void)setupChildViewControllers {
    ZKHotViewController *hotVC = [ZKHotViewController new];
    hotVC.title = @"热门";
    [self addChildViewController:hotVC];
    
    ZKListViewController *listVC = [ZKListViewController new];
    listVC.title = @"榜单";
    [self addChildViewController:listVC];
    
    ZKVideoViewController *videoVC = [ZKVideoViewController new];
    videoVC.title = @"视频";
    [self addChildViewController:videoVC];
}

About

微博发现模块左右滑动 ViewController 效果

Resources

Stars

Watchers

Forks

Packages

No packages published