# DOPNavbarMenu **Repository Path**: mirrors/DOPNavbarMenu ## Basic Information - **Project Name**: DOPNavbarMenu - **Description**: 一款增加导航选项的控件,相信很多同学可能会用到 - **Primary Language**: Objective-C - **License**: MIT - **Default Branch**: master - **Homepage**: https://www.oschina.net/p/dopnavbarmenu - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2020-09-17 - **Last Updated**: 2026-01-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # DOPNavbarMenu expand navigationbar with more items gif better than any words. ![image](https://github.com/dopcn/DOPNavbarMenu/blob/master/Images/sample.gif) ### `@interface` ```objc //iOS7+ @interface DOPNavbarMenu : UIView @property (copy, nonatomic, readonly) NSArray *items; @property (assign, nonatomic, readonly) NSInteger maximumNumberInRow; @property (assign, nonatomic, getter=isOpen) BOOL open; @property (weak, nonatomic) id delegate; @property (strong, nonatomic) UIColor *textColor; @property (strong, nonatomic) UIColor *separatarColor; - (instancetype)initWithItems:(NSArray *)items width:(CGFloat)width maximumNumberInRow:(NSInteger)max; - (void)showInNavigationController:(UINavigationController *)nvc; - (void)dismissWithAnimation:(BOOL)animation; @end ``` ### `@protocol` ```objc @protocol DOPNavbarMenuDelegate - (void)didShowMenu:(DOPNavbarMenu *)menu; - (void)didDismissMenu:(DOPNavbarMenu *)menu; - (void)didSelectedMenu:(DOPNavbarMenu *)menu atIndex:(NSInteger)index; @end ```