New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PlaceHolder not shown #44
Comments
@tjsingh04 Did you check the example project? |
yes i was checked , i think the problem is pre fill text of country code in the textfield, when i remove country code then it show the placeholder but i need it even if country code is there. |
Place your code or project here. |
set @IBOutlet weak var phoneTF: NKVPhonePickerTextField! and in viewDidLoad is have use below code
|
Hmm, the plus is too close to flag also. What phone model is it? |
plus is closed, becoz of |
Sorry, but the textField is using a standard placeholder and i don't see how to easily change its behaviour. However you can set a little hack like: textField.countryPickerDelegate = self
extension ViewController: CountriesViewControllerDelegate {
func countriesViewController(_ sender: CountriesViewController, didSelectCountry country: Country) {
print("✳️ Did select country: \(country)")
textField.placeholder = country.phoneExtension
}
} Also tell what you exactly want to achieve? |
i just want to show place holder just like my second screenshoot, but it only show when i remove whole text from textfield i.e when remove country code, means place holder is not shown with country code added in textfield as you see in first screenshoot , it shows when i remove country code (refer to 2nd screenshoot). i want to show place holder with country code added in textfield. now do you get my point? |
So i think its can not be done, only with hack, that i produced.
вт, 14 мая 2019 г., 11:11 tjsingh04 notifications@github.com:
… i just want to show place holder just like my second screenshoot, but it
only show when i remove whole text from textfield i.e when remove country
code, means place holder is not shown with country code added in textfield,
it shows when i remove country code.
i want to show place holder with country code added in textfield. do you
get my point?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#44?email_source=notifications&email_token=AD7AMCRC4HL3J6CVRNXQZWDPVJX3BA5CNFSM4HLONFF2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVKUBJA#issuecomment-492126372>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AD7AMCSTHNHSFB6HW6XQ3ADPVJX3BANCNFSM4HLONFFQ>
.
|
yes i think so, is there any other hack for it |
Try to find yourself, you have a code)
вт, 14 мая 2019 г. в 12:21, tjsingh04 <notifications@github.com>:
… yes i think so, is there any other hack for it
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#44?email_source=notifications&email_token=AD7AMCUKOSXBJMV2N6HMCK3PVKAALA5CNFSM4HLONFF2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVK36QA#issuecomment-492158784>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AD7AMCV4EQ2RDYPH6YS7J23PVKAALANCNFSM4HLONFFQ>
.
|
okay Thanks Brother |
General Information
What happened?
Placeholder is not shown even if set it programatically or from storyboard
What did you expect to happen?
Placeholder should shown in text feild
The text was updated successfully, but these errors were encountered: