Latest 0.0.2
Homepage https://github.com/alicialy/LTDropDownMenu
License MIT
Platforms ios 7.0, requires ARC
Authors

Drop down menu

The menu can be added to table headerView and when click it, the header will be move the top.

Insatallation

pod 'LTDropDownMenu'

Usage

 CGSize size = CGSizeMake([[UIScreen mainScreen] bounds].size.width, 28);
LTDropDownMenu *menu = [LTDropDownMenu menuWithSize:size];
[menu setMenuTitles:@[@"All", @"Near", @"Sort"]];
menu.delegate = self;
menu.dataSource = self;

Implement delegate method
- (void)menu:(LTDropDownMenu *)menu didSelectRow:(NSInteger)row;

Implement datasource method
- (NSString *)menu:(LTDropDownMenu *)menu titleForCol:(NSInteger)col row:(NSInteger)row;

- (NSInteger)menu:(LTDropDownMenu *)menu numberOfRowsInCol:(NSInteger)col;

Sample Image

img

Latest podspec

{
    "name": "LTDropDownMenu",
    "version": "0.0.2",
    "summary": "DropDown Menu in TableHeader",
    "homepage": "https://github.com/alicialy/LTDropDownMenu",
    "license": "MIT",
    "authors": {
        "alicialy": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/alicialy/LTDropDownMenu.git",
        "tag": "0.0.2"
    },
    "source_files": "LTDropDownMenu/*.{h,m}",
    "resources": "LTDropDownMenu/Resource/Image.xcassets",
    "requires_arc": true
}

Pin It on Pinterest

Share This