jaykon / kkpicker Goto Github PK
View Code? Open in Web Editor NEW简易选择器,包括文本选择,多文本关联选择,省市地区选择,支持默认选择
简易选择器,包括文本选择,多文本关联选择,省市地区选择,支持默认选择
第一个使用了 default 关键字,第二个,默认启动选择城市的时候,在KKAreaPicker这个类,if(adress){
if(adress.provice){
NSUInteger index0=[stateArray indexOfObject:adress.provice];
[defaultSelected safeAddObject:[NSNumber numberWithInt:index0]];
if(adress.city){
NSUInteger index1=[[cityDic safeObjectForKey:adress.provice] indexOfObject:adress.city];
[defaultSelected safeAddObject:[NSNumber numberWithInt:index1]];
if(adress.area){
NSUInteger index2=[[areaDic safeObjectForKey:adress.city] indexOfObject:adress.area];
[defaultSelected safeAddObject:[NSNumber numberWithInt:index2]];
}
}
}
}
作者你选错字典啦
首先感谢楼主开源分享;
具体问题是联动的时候根据key
查下一级,但是可能会出现key
一样的情况;
问题数据:
北京->朝阳
辽宁->朝阳
目前我把北京的朝阳
改成朝阳区
了
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.