chronotruck / FlagPhoneNumber

A formatted phone number UITextField with country flag picker.
Apache License 2.0
437 stars 317 forks source link

search field disappears on second time if iOS <13.0 #163

Open ShikhaSingla opened 4 years ago

ShikhaSingla commented 4 years ago

Describe the bug The search bar appears only when the user open the country drop down for the first time. After that, the search field doesn't appear until and unless the application is killed from background.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Country text field'
  2. Click on 'Country text field'
  3. A new screen appears with search field
  4. But when same process is followed second time, search field doesn't appear.

Expected behavior Search field should remain on top of countries list 83739626-7a358880-a673-11ea-95df-b09700596824

Screenshots Please see the attached screenshot.

Smartphone (please complete the following information):

Additional context N/A

sameeh0946 commented 4 years ago

Any solution?

ShikhaSingla commented 4 years ago

Not found yet

On Mon, Jul 20, 2020 at 5:03 PM sameeh0946 notifications@github.com wrote:

Any solution?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/chronotruck/FlagPhoneNumber/issues/163#issuecomment-660972751, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF6XRA2HBSFIYUW66U4LJZ3R4QTSHANCNFSM4NSXQLEQ .

-- Best Regards

Shikha SinglaSenior Software Engineer Skype: shikha.singla

jakubradzik commented 3 years ago

I started initializing FPNCountryListViewController inside fpnDisplayCountryList() function. If you do it like that the search textField will always be visible.

ahsan-khalil commented 3 years ago

Yes, this issue still exists. I create a new view controller every time and by using that error doesn't occur. but I don't think I am using the wise solution.