Skip to content

防淘宝 横条 下拉显示,可选择,可改变标题颜色

License

Notifications You must be signed in to change notification settings

7General/HZDropDwonMneuList

Repository files navigation

一句话完成调用

该API和UITableView的API是差不多的

  • 快速集成
  • 使用简单
  • API仿UITableView的API哦
  • *内存消耗超低
  • 容易扩展

看看效果图

这里写图片描述

快速继承

  • github https://github.com/7General/HZDropDwonMneuList
// 添加代码
self.dropMenu = [DropDownMenuList show:CGPointMake(0, 64) andHeight:44];
self.dropMenu.delegate = self;
self.dropMenu.dataSource = self;
[self.view addSubview:self.dropMenu];

HZDropDownMenuList的代理

@protocol DropDownMenuListDataSouce <NSObject>
@required
// 设置显示列的内容
-(NSMutableArray *)menuNumberOfRowInColumn;
// 设置多少行显示
-(NSInteger)menu:(DropDownMenuList *)menu numberOfRowsInColum:(NSInteger)column;
// 设置显示没行的内容
-(NSString *)menu:(DropDownMenuList *)menu titleForRowAtIndexPath:(HZIndexPath *)indexPath;


@optional
// 每行图片
-(NSString *)menu:(DropDownMenuList *)menu imageNameForRowAtIndexPath:(HZIndexPath *)indexPath;

@end
@protocol DropDownMenuListDelegate <NSObject>
@optional
// 点击每一行的效果
- (void)menu:(DropDownMenuList *)segment didSelectRowAtIndexPath:(HZIndexPath *)indexPath;
// 点击没一列的效果
- (void)menu:(DropDownMenuList *)segment didSelectTitleAtColumn:(NSInteger)column;

@end

关注洲洲哥的公众号,提高装逼技能就靠他了

这里写图片描述

About

防淘宝 横条 下拉显示,可选择,可改变标题颜色

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published