简体   繁体   English

iPhone中的滚动菜单栏

[英]scrolling menu bar in iphone

I am designing an app and I am thinking of adding a scrolling menu bar in app.I have tried JSScrollableTabBar from 我正在设计一个应用程序,我正在考虑在应用程序中添加一个滚动菜单栏。我已经尝试了JSScrollableTabBar

http://cocoacontrols.com/platforms/ios/controls/jsscrollabletabbar http://cocoacontrols.com/platforms/ios/controls/jsscrollabletabbar

but it just crashes when I check the demo that is uploaded on github ! 但是当我检查在github上上传的演示时,它只是崩溃了!

I have figured out this problem. 我已经解决了这个问题。 Replace below line in ScrollableTabBarViewController.m file. 替换ScrollableTabBarViewController.m文件中的以下行。

JSTabItem *item = [[JSTabItem alloc] initWithTitle:[NSString stringWithFormat:@"Item %d", i]]; JSTabItem * item = [[[JSTabItem alloc] initWithTitle:[NSString stringWithFormat:@“ Item%d”,i]];

Replace with 用。。。来代替

JSTabItem *item = [[JSTabItem alloc] initWithTitle:[NSString stringWithFormat:@"Item %d", i] andColor:[UIColor redColor] andTextColor:[UIColor yellowColor]]; JSTabItem * item = [[JSTabItem alloc] initWithTitle:[NSString stringWithFormat:@“ Item%d”,i] andColor:[UIColor redColor] andTextColor:[UIColor yellowColor]];

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM