Comments (3)
你可以先暂时这样获取,我后期会在resultBlock的回调中加上索引。
// 自定义单列字符串
NSArray *dataSource = @[@"大专以下", @"大专", @"本科", @"硕士", @"博士", @"博士后"];
NSString *selectedValue = @"本科";
[BRStringPickerView showStringPickerWithTitle:@"学历" dataSource:dataSource defaultSelValue:selectedValue isAutoSelect:YES themeColor:nil resultBlock:^(id selectValue) {
NSLog(@"选择的值:%@", selectValue);
NSLog(@"选择的值对应的索引:%@", [dataSource indexOfObject:selectValue]);
} cancelBlock:nil];
from brpickerview.
谢谢啊
from brpickerview.
那如果数组里面有数据相同呢?
from brpickerview.
Related Issues (20)
- 内容不显示 HOT 1
- 手动集成报错 HOT 1
- 底部间距问题依然存在,版本号2.7.7 HOT 4
- 间距异常 HOT 1
- timeZone 设置导致日期起止时间显示不正确 HOT 3
- 最新版本pod 后运行项目报错
- 请问作者能设置默认行的文字颜色吗?,效果是这样的
- BRStringPickerView能支持一下循环滚动吗?
- 自定义多级联动,只显示了第一级
- 当 BRDatePickerView的pickerMode为BRDatePickerModeYMDHMS类型时,会出现月份一直回滚的问题
- BRStringPickerComponentLinkage模式,选择后,后面的数据回到第一个,源码好像是默认回到第一个
- scrolling loop is important
- BRStringPickerView如何设置圆角
- BRStringPickerView中selectValue 不准确的问题 HOT 1
- 时分秒选择问题
- 改变大小
- 能否支持一下Swift Package Manager HOT 1
- 能否将UIPickerView开放到.h文件中,方面更好的针对操作进行自定义
- 国际化问题 HOT 2
- 年-季度模式下, 默认选中的季度只能是一季度, 无法设置选中当前季度
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from brpickerview.