mustafaibrahim989 / MICountryPicker

MICountryPicker is a country picker controller for iOS8+ with an option to search.
MIT License
90 stars 37 forks source link

Wrong selection from filtered result #12

Closed abdelrahman-ahmed closed 8 years ago

abdelrahman-ahmed commented 8 years ago

Steps 1- Type Egypt 2- select first items

Result: selected country Andora (+376) Expected: selected country Egypt (+20)

mustafaibrahim989 commented 8 years ago

Which branch or release are you use?

abdelrahman-ahmed commented 8 years ago

I installed the latest one using pods. pod 'MICountryPicker'

mustafaibrahim989 commented 8 years ago

Can you please give me more details. I can not reproduce this issue

iDevelopper commented 8 years ago

Same for me. This is wrong after tapping the search button on the keyboard. Right if not.

mustafaibrahim989 commented 8 years ago

@iDevelopper Are you using swift-2?

iDevelopper commented 8 years ago

Swift 3

mustafaibrahim989 commented 8 years ago

Fixed 👍. Please update you pods file. Thanks for you contributions @iDevelopper @abdelrahman-ahmed

Please use this for Swift-3: pod 'MICountryPicker', :git => 'https://github.com/mustafaibrahim989/MICountryPicker.git', :branch => 'master'

and this for Swift-2:

pod 'MICountryPicker', :git => 'https://github.com/mustafaibrahim989/MICountryPicker.git', :branch => 'swift-2'

iDevelopper commented 8 years ago

@mustafaibrahim989 , thanks we'll test. :-)