Coder Social home page Coder Social logo

areapickerview's Introduction

AreaPickerView_swift

areapicker in china, easy to use. **的地区选择器.简单易用.

之前的地址选择器都是网上找的,但是网上的第三方,功能很多,看起来还要配置不少东西.用起来麻烦. 然后,我就自己写了一个.只有地址选择功能,连数据源都自己搞好…方便很多.后来想想不知道,有没有人也像我一样只是想到一个简单的地区选择器而已.然后,我就上传上github上面了….. 希望有人能看到吧…

Alt Text

把AreaPickerView文件夹拖到你的工程,按类方法创建pickerView....并遵守代理方法.demo应该可以说明用法. xib和代码创建的textField都没有问题.....

实现三个代理方法

internal func cancel(areaToolbar: AreaToolbar, textField: UITextField, locate: Location, item: UIBarButtonItem) { //还原原来的值...... }

internal func sure(areaToolbar: AreaToolbar, textField: UITextField, locate: Location, item: UIBarButtonItem) { //设置新值 }

internal func statusChanged(areaPickerView: AreaPickerView, pickerView: UIPickerView, textField: UITextField, locate: Location) { //立即显示新值 }

如果你使用过程有任何疑问,可以讨论下: QQ:380341629 如果可以给个星,让我高兴一下? ^_^

areapickerview's People

Contributors

chquanquan avatar

Stargazers

sealife avatar

Watchers

sealife avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.