GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - dennishappy/JPullDownMenu: This is a library of the drop-down menu (OC).

BranchesTags
Open more actions menu

Latest commit

 

History

11 Commits
11 Commits

Folders and files

NameName
Last commit message
Last commit date
JPullDownMenuDemo.xcodeproj
JPullDownMenuDemo.xcodeproj
 
 
JPullDownMenuDemo
JPullDownMenuDemo
 
 
JPullDownMenu.podspec
JPullDownMenu.podspec
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
image.png
image.png
 
 

Repository files navigation

JPullDownMenu

####这是一个简单的下拉菜单,使用详情见Demo。 ####如果觉得有用的话,给个赞呗。😂😂😂


Usage

 self.menu = [[JPullDownMenu alloc]initWithFrame:CGRectMake(0, 64,self.view.frame.size.width, 40) menuTitleArray:@[@"残剑",@"长空",@"飞雪"]];
 
    NSArray * regionArray =@[@"黄浦区",@"南市区",@"卢湾区",@"徐汇区",@"不限"];
    NSArray *classTypeArray=@[@"学龄前",@"小学",@"初中",@"高中",@"成人"];
    NSArray *sortRuleArray=@[@"距离",@"价格",@"评分",@"最新",@"最热"];
    
    self.menu.menuDataArray = [NSMutableArray arrayWithObjects:regionArray, classTypeArray , sortRuleArray, nil];
    
    [self.view addSubview:self.menu];
    
    __weak typeof(self) _self = self;
    [self.menu setHandleSelectDataBlock:^(NSString *selectTitle, NSUInteger selectIndex, NSUInteger selectButtonTag) {
        
        _self.titleLabel.text = [NSString stringWithFormat:@"selectTitle = %@\n selectIndex = @%lu\n selectButtonTag = @%lu",selectTitle,selectIndex,selectButtonTag];
    }];
}

Author

jinxiansen, email: [email protected]

License

JPullDownMenu is available under the (MIT)License.

About

This is a library of the drop-down menu (OC).

Resources

Readme
MIT license
Activity

Stars

13 stars

Watchers

2 watching

Forks

7 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.