源码介绍:在此基础上,美化了界面,增加了双列表应用,优化了代码,增强了稳定性。我希望你喜欢它。喜欢的话请给个star;-)源码效果:源码片段:#pragmamark-datasourceprotocol@classDOPDropDownMenu;@protocolDOPDropDownMenuDataSource@required/***返回菜单column列的行数*/-(NSInteger)menu:(DOPDropDownMenu*)menunumberOfRowsInColumn:(NSInteger)column;/***返回标题*/-(NSString*)menu:(DOPDropDownMenu*)menutitleForRowAtIndexPath:(DOPIndexPath*)indexPath;@optional/***返回菜单中有多少列,默认1列*/-(NSInteger)numberOfColumnsInMenu:(DOPDropDownMenu*)menu;/**新增*当有列行时,返回多少项,如果>0,表示有二级列表,=0表示没有二级列表*如果没有二级列表,则不能执行协议*/-(NSInteger)menu:(DOPDropDownMenu*)menunumberOfItemsInRow:(NSInteger)rowcolumn:(NSInteger)column;/**新增*当有column,row,row,item,title时*如果没有则不能执行theprotocol*/-(NSString*)menu:(DOPDropDownMenu*)menutitleForItemsInRowAtIndexPath:(DOPIndexPath*)indexPath;@end#pragmamark-delegate@protocolDOPDropDownMenuDelegate@optional/***点击代理,点击行或者列的项目,如果item>=0*/-(void)menu:(DOPDropDownMenu*)menudidSelectRowAtIndexPath:(DOPIndexPath*)indexPath;@end下载地址:http://down.51cto.com/data/2071697