# GFDropDownMenu **Repository Path**: greywolf/GFDropDownMenu ## Basic Information - **Project Name**: GFDropDownMenu - **Description**: DropDownMenu+UICollectionView - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2017-05-24 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # GFDropDownMenu DropDownMenu+UICollectionView 1.首选感谢DOPDropDownMenu的作者:https://github.com/dopcn/DOPDropDownMenu ,我是讲里边的UITableView替换成了UICollectionView,可定制性更强一些。 2.效果图: ![](http://git.oschina.net/greywolf/GFDropDownMenu/raw/master/Screenshot.gif) 3.使用方式: works the same as `UITableView` with a `dataSource` and a `delegate` ```objc #pragma mark - data source protocol @protocol DOPDropDownMenuDataSource @required - (NSInteger)menu:(DOPDropDownMenu *)menu numberOfRowsInColumn:(NSInteger)column; - (NSString *)menu:(DOPDropDownMenu *)menu titleForRowAtIndexPath:(DOPIndexPath *)indexPath; @optional //default value is 1 - (NSInteger)numberOfColumnsInMenu:(DOPDropDownMenu *)menu; @end #pragma mark - delegate @protocol DOPDropDownMenuDelegate @optional - (void)menu:(DOPDropDownMenu *)menu didSelectRowAtIndexPath:(DOPIndexPath *)indexPath; @end ```