Latest 1.0.2
Homepage https://github.com/nolol/ACDDropdownMenu
License MIT
Platforms ios 7.0
Authors

A simple dropdown menu in navigation.
一个简单的下拉菜单,用于导航栏中。

You can customize almost everything you want custom attributes.
你几乎可以定制一切你希望定制的属性。

// 定制下拉菜单按钮
@property (nonatomic, strong) NSArray *titlesArray;
@property (nonatomic, strong) UIFont *titleFont;
@property (nonatomic, strong) UIColor *titleColor;
@property (nonatomic, strong) UIImage *indicatorImage;
@property (nonatomic, strong) UIColor *indicatorColor;
@property (nonatomic, assign) CGFloat indicatorPadding;
@property (nonatomic, assign) NSTimeInterval animationDuration;
// 定制下拉菜单
@property (nonatomic, assign) BOOL keepMenuCellSelection;
@property (nonatomic, assign) CGFloat menuCellHeight;
@property (nonatomic, assign) UIEdgeInsets menuCellSeparatorInsets;
@property (nonatomic, assign) NSTextAlignment menuCellTextAlignment;
@property (nonatomic, strong) UIFont *menuCellTextFont;
@property (nonatomic, strong) UIColor *menuCellTextColor;
@property (nonatomic, strong) UIColor *menuBackgroundColor;
@property (nonatomic, strong) UIColor *menuCellSelectionColor;
@property (nonatomic, assign) CGFloat menuBackgroundAlpha;

Usage

ACDDropdownMenu *menu =
        [[ACDDropdownMenu alloc] initWithTitle:@"1号动作"
                          navigationController:self.navigationController];
    menu.titlesArray = @[ @"所有文档", @"已签文档", @"原始文档", @"草稿箱" ];
    menu.menuBackgroundAlpha = 0.6;
    menu.delegate = self;
    self.navigationItem.titleView = menu;

Like this~
就像这样~

image

Latest podspec

{
    "name": "ACDDropdownMenu",
    "version": "1.0.2",
    "summary": "A simple dropdown menu in navigation.",
    "description": "A simple dropdown menu in navigation.You can quickly integrate a drop-down menu in your navigation bar.",
    "homepage": "https://github.com/nolol/ACDDropdownMenu",
    "license": "MIT",
    "authors": {
        "onedotM": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/nolol/ACDDropdownMenu.git",
        "tag": "1.0.2"
    },
    "source_files": "ACDDropdownMenu/Controllers/ACDDropdownMenu/*.{h,m}"
}

Pin It on Pinterest

Share This