ios 横向滚轮效果_ios横向菜单+页面滑动
ios橫向菜單+頁面滑動
查看次數:9122
下載次數:992
上傳時間:2016-06-28
大小:11 B
Demo:
https://github.com/Super-lying/LyScrollMenu
橫向菜單+頁面滑動
例子
UIViewController *VC1 = [[UIViewController alloc]init];
[VC1.view setBackgroundColor:[UIColor redColor]];
UIViewController *VC2 = [[UIViewController alloc]init];
[VC2.view setBackgroundColor:[UIColor blueColor]];
UIViewController *VC3 = [[UIViewController alloc]init];
[VC3.view setBackgroundColor:[UIColor grayColor]];
UIViewController *VC4 = [[UIViewController alloc]init];
[VC4.view setBackgroundColor:[UIColor greenColor]];
UIViewController *VC5 = [[UIViewController alloc]init];
[VC5.view setBackgroundColor:[UIColor purpleColor]];
UIViewController *VC6 = [[UIViewController alloc]init];
[VC6.view setBackgroundColor:[UIColor lightGrayColor]];
UIViewController *VC7 = [[UIViewController alloc]init];
[VC7.view setBackgroundColor:[UIColor yellowColor]];
CGRect Rect = CGRectMake(0, 20, kSCREEN_WIDTH, kSCREEN_HEIGHT);
LyScrollMenu *LyMenu = [[LyScrollMenu alloc]initWithFrame:Rect
ControllerViewArray:@[VC1.view,VC2.view,VC3.view,VC4.view,VC5.view,VC6.view,VC7.view]
TitleArray:@[@"標題1",@"標題2",@"標題3",@"標題4",@"標題5",@"標題6",@"標題7"]
MaxShowTitleNum:5];
LyMenu.delegate = self;
[self.view addSubview:LyMenu];
收藏
分享到:
效果圖
我來說兩句
發表評論
您還沒有登錄!請登錄或注冊
所有評論(0)
更多評論
總結
以上是生活随笔為你收集整理的ios 横向滚轮效果_ios横向菜单+页面滑动的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: word怎么设置页脚页数
- 下一篇: adc0832对光电二极管进行数据采集_