文章来源:淘论文网   发布者: 毕业设计   浏览量: 35



还可以点击去查询以下关键词:
[仿美团]    [毕业]    [菜单]    [仿美团首毕业页菜单]   

项目介绍:

YANScrollMenu



Requirements

ARC

iOS 8.0+

Cocoapods

YANScrollMenu is available via Cocoapods, add this line in your podfile :

pod 'YANScrollMenu', '~> 0.9.0'Usage

Import the class :

#import 'YANScrollMenu.h'

Simply initialize a YANScrollMenu the same way you set up a regular UIView:

self.menu = [[YANScrollMenu alloc] initWithFrame:CGRectMake(0, 0, 375,150)]; [self.view addSubview:self.menu];

YANScrollMenuProtocol must be adopted :

- (NSUInteger)numberOfRowsForEachPageInScrollMenu:(YANScrollMenu *)scrollMenu; - (NSUInteger)numberOfItemsForEachRowInScrollMenu:(YANScrollMenu *)scrollMenu; - (NSUInteger)numberOfMenusInScrollMenu:(YANScrollMenu *)scrollMenu; - (YANMenuObject *)scrollMenu:(YANScrollMenu *)scrollMenu objectAtIndexPath:(NSIndexPath *)indexPath;

Custom appearance :

[[YANMenuItem appearance] setIconSize:30]; [[YANMenuItem appearance] setIconCornerRadius:15]; [[YANMenuItem appearance] setTextFont:[UIFont systemFontOfSize:12]]; [[YANMenuItem appearance] setTextColor:[UIColor darkTextColor]];

The function in YANScrollMenuProtocol can be use to adjust the edgeInsets of YANMenuItem:

- (YANEdgeInsets)edgeInsetsOfItemInScrollMenu:(YANScrollMenu *)scrollMenu;

Dependency

YANScrollMenu depend on SDWebImage and Masonry.

When the version of SDWebImage large than 3.8.2 , gif will not be supported.

Release Notes

V 0.9.0 The first version

License

YANScrollMenu is released under the MIT license. See LICENSE file for details.

Contact

Any suggestion or question? Please create a Github issue .

论文开题报告

这里还有:


还可以点击去查询:
[仿美团]    [毕业]    [菜单]    [仿美团首毕业页菜单]   

请扫码加微信 微信号:sj52abcd


下载地址: http://www.taolw.com/down/6521.docx
  • 上一篇:可折叠U定制ITAbleViewCell
  • 下一篇:类网易新闻评论新闻输入框毕业设计,监听键盘改变显示高度,自...