Latest 1.0.1
Homepage https://github.com/KBvsMJ/EBTTextFildDropDownDemo
License MIT
Platforms ios 8.0, requires ARC
Authors

TextField添加下拉选择菜单支持block回调

使用pod指令把类库集成到项目中:

  pod 'EBTTextFiledDropDown'


    NSArray *result = @[@"option0",@"option1",@"option2",@"option3",@"option4",@"option5",@"option6"];

    [EBTTextFieldDropDownView showDrowpDownListInView:self.textField withOptionArray:result withCompleteHandler:^(NSInteger selectIndex,NSString *selectOption) {

        self.textField.text = nil;
        self.textField.text = [NSString stringWithFormat:@"第%ld行,内容=%@",selectIndex,selectOption];
        NSLog(@"option=%@,index =%ld",selectOption,selectIndex);

    }];


效果演示图

Image

Latest podspec

{
    "name": "EBTTextFiledDropDown",
    "version": "1.0.1",
    "summary": "Add a drop-down selection menu for textfield",
    "description": "Add drop-down selection menu support for textfield block",
    "homepage": "https://github.com/KBvsMJ/EBTTextFildDropDownDemo",
    "license": "MIT",
    "authors": {
        "KBvsMJ": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/KBvsMJ/EBTTextFildDropDownDemo.git",
        "tag": "1.0.1"
    },
    "source_files": "EBTTextFiledDropDown/**/*.{h,m}",
    "resources": "EBTTextFiledDropDown/*.{xib}",
    "requires_arc": true
}

Pin It on Pinterest

Share This