UIView *paddingView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 30, 30)];
_passwordTextField.rightView = paddingView;
_passwordTextField.rightViewMode = UITextFieldViewModeAlways;
(AND)
- (IBAction)passwordClicked:(id)sender {
isChecked =!isChecked;
//UIButton *check = (UIButton*)sender;
if(isChecked == NO)
self.passwordTextField.secureTextEntry = NO;
else
self.passwordTextField.secureTextEntry = YES;
}
_passwordTextField.rightView = paddingView;
_passwordTextField.rightViewMode = UITextFieldViewModeAlways;
(AND)
- (IBAction)passwordClicked:(id)sender {
isChecked =!isChecked;
//UIButton *check = (UIButton*)sender;
if(isChecked == NO)
self.passwordTextField.secureTextEntry = NO;
else
self.passwordTextField.secureTextEntry = YES;
}
Sign up here with your email
ConversionConversion EmoticonEmoticon