代码拉取完成,页面将自动刷新
XHScrollMenu is a display column elements, base on NetEase News App.
Completely created using UIKit framework.
Easy to drop into your project.
You can add this feature to your own project, Source
is easy-to-use.
XHScrollMenu requires Xcode 5, targeting either iOS 5.0 and above, ARC-enabled.
CocosPods is the recommended methods of installation XHScrollMenu, just add the following line to Profile
:
pod 'XHScrollMenu', '~> 0.1.2'
NSMutableArray *menus = [[NSMutableArray alloc] initWithCapacity:10];
for (int i = 0; i < 20; i ++) {
XHMenu *menu = [[XHMenu alloc] init];
menu.title = [NSString stringWithFormat:@"Title%d", i];
menu.titleColor = [UIColor colorWithWhite:0.141 alpha:1.000];
menu.titleFont = [UIFont boldSystemFontOfSize:16];
[menus addObject:menu];
}
XHScrollMenu *scrollMenu = [[XHScrollMenu alloc] initWithFrame:CGRectMake(0, 44, CGRectGetWidth(self.view.bounds), 36)];
scrollMenu.backgroundColor = [UIColor colorWithWhite:0.902 alpha:1.000];
scrollMenu.delegate = self;
[self.view addSubview:scrollMenu];
scrollMenu.menus = menus;
[scrollMenu reloadData];
if you set default select 2 title item, you need set the property
scrollMenu.defaultSelectIndex = 2;
XHScrollMenu
is available under the MIT license. See the LICENSE file for more info.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
1. 开源生态
2. 协作、人、软件
3. 评估模型