I'm using UILabel
for displaying the year value which i select through UIPickerView
. I want the year field to be secure. In UITextfield
we will use setSecureTextEntry
, do we have anything similar for UILabel
?
Thanks
I am not sure I really understand your question, but assuming you want to display asterisks in place of text in the label, just get the length of the string you would normally display and replace the characters with asterisks:
NSString *myPickerValue = @"MyPickerValue";
self.myLabel.text = [@"" stringByPaddingToLength: [myPickerValue length] withString: @"*" startingAtIndex:0];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With