Skip to content

xiayanfeng/RW_DropdownMenu

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RW_DropdownMenu

Import

导入头文件DropdownMenu.h

How To Use

实现初始化

  • (id)initDropdownWithButtonTitles:(NSArray*)titles andLeftListArray:(NSArray*)leftArray andRightListArray:(NSArray *)rightArray;
  • 例如:
  • DropdownMenu *dropdown = [[DropdownMenu alloc] initDropdownWithButtonTitles:_titleArray andLeftListArray:_leftArray andRightListArray:_rightArray];
    dropdown.delegate = self; //此句的代理方法可返回选中下标值
    [self.view addSubview:dropdown.view];

Delegate

//实现代理,返回选中的下标,若左边没有列表,则返回0。left为左边选中下标,right为右边选中下标

  • (void)dropdownSelectedLeftIndex:(NSString *)left RightIndex:(NSString *)right; { NSLog(@"%s : You choice %@ and %@", FUNCTION, left, right); }

Demo

image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 97.8%
  • C 2.2%