ios 横向滚轮效果_ios横向菜单+页面滑动
ios橫向菜單+頁(yè)面滑動(dòng)
查看次數(shù):9122
下載次數(shù):992
上傳時(shí)間:2016-06-28
大小:11 B
Demo:
https://github.com/Super-lying/LyScrollMenu
橫向菜單+頁(yè)面滑動(dòng)
例子
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:@[@"標(biāo)題1",@"標(biāo)題2",@"標(biāo)題3",@"標(biāo)題4",@"標(biāo)題5",@"標(biāo)題6",@"標(biāo)題7"]
MaxShowTitleNum:5];
LyMenu.delegate = self;
[self.view addSubview:LyMenu];
收藏
分享到:
效果圖
我來(lái)說(shuō)兩句
發(fā)表評(píng)論
您還沒(méi)有登錄!請(qǐng)登錄或注冊(cè)
所有評(píng)論(0)
更多評(píng)論
總結(jié)
以上是生活随笔為你收集整理的ios 横向滚轮效果_ios横向菜单+页面滑动的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: word怎么设置页脚页数
- 下一篇: adc0832对光电二极管进行数据采集_