Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

PerfectShen/WSDropMenuView

Repository files navigation

WSDropMenuView

类似美团的多级选择列表 - 简单易用 (史上最简洁的 三级列表 ,并且很容易改造成两级和一级或者四级,实现代码不超过550行); (来了帮忙点个 赞 star -- 好人一生平安)

![预览图] [预览图]:https://github.com/PerfectShen/WSDropMenuView/blob/master/dropMenu.gif "欢迎私信我哦" 我的博客

how to use?

初始化对象

WSDropMenuView *dropMenu = [[WSDropMenuView alloc] initWithFrame:CGRectMake(0, 60, self.view.frame.size.width, 40)];
dropMenu.dataSource = self;
dropMenu.delegate =self;
[self.view addSubview:dropMenu]; 

实现代理方法 (简单易用 , 不繁琐)


- (NSInteger)dropMenuView:(WSDropMenuView *)dropMenuView numberWithIndexPath:(WSIndexPath *)indexPath; //dataSource
- (NSString *)dropMenuView:(WSDropMenuView *)dropMenuView titleWithIndexPath:(WSIndexPath *)indexPath //dataSource
- (void)dropMenuView:(WSDropMenuView *)dropMenuView didSelectWithIndexPath:(WSIndexPath *)indexPath //delegate

About

类似美团的多级选择列表 - 简单易用

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

AltStyle によって変換されたページ (->オリジナル) /