I currently have a UITextfield with an eye icon in it that when pressed is supposed to toggle the secure text entry on and off.
UITextfield
I know you can che
Use button with eye image and make buttonHandler method set Tag for button with value 1
-(IBAction) buttonHandlerSecureText:(UIButton *)sender{ if(sender.tag ==1){ [self.textField setSecureTextEntry:NO]; sender.tag = 2; } else{ [self.textField setSecureTextEntry:YES]; sender.tag = 1; } }