Skip to content
Projects

dopcn/DOPDropDownMenu

View on GitHub

dopcn/DOPDropDownMenu has 712 GitHub stars and 108 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-15 19:10 UTC. Last push 2022-04-13.

How these counts are measured

Measured star growth

in 24h
0
in 7 days
Update delayed
in 15 days
Update delayed
in 1 month
Update delayed

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

About

Drop down menu like we see on website for iPhone

Web & Apps

README.md

Original

DOPDropDownMenu

Drop down menu like we see on website for iPhone..

image

works the same as UITableView with a dataSource and a delegate

#pragma mark - data source protocol
@protocol DOPDropDownMenuDataSource <NSObject>
@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 <NSObject>
@optional
- (void)menu:(DOPDropDownMenu *)menu didSelectRowAtIndexPath:(DOPIndexPath *)indexPath;
@end

The menu will set it's width equal to screen width defaultly

/**
 *  the width of menu will be set to screen width defaultly
 *
 *  @param origin the origin of this view's frame
 *  @param height menu's height
 *
 *  @return menu
 */
- (instancetype)initWithOrigin:(CGPoint)origin andHeight:(CGFloat)height;

DOPDropDownMenu-Enhanced

There is a new DOPDropDownMenu-Enhanced, https://github.com/12207480/DOPDropDownMenu-Enhanced

on the basis of this, add double tableView , to optimize the code, improves stability ,

this project is inspired by MXPullDownMenu

Swift Version Used

Swift version of DOPDropDownMenu : https://github.com/javalnanda/JNDropDownMenu