// // SettingsPasswdInputViewController.m // OneCable // // Created by nComz on 2017. 4. 26.. // Copyright © 2017년 ntels. All rights reserved. // #import "SettingsPasswdInputViewController.h" #import "CustomTextField.h" @interface SettingsPasswdInputViewController () @end @implementation SettingsPasswdInputViewController - (void)viewDidLoad { [super viewDidLoad]; [self initUI]; } - (void)initUI { _txtInputPasswd.returnKeyType = UIReturnKeyDone; _txtInputPasswd.delegate = self; [self.navigationController.navigationBar setHidden:YES]; self.navigationController.interactivePopGestureRecognizer.enabled = NO; } - (IBAction)btnNextTouched:(id)sender { UIViewController *vc = [CommonUtil instantiateViewControllerWithIdentifier:@"SettingsPasswdSetViewController" storyboardName:@"Settings"]; // 유효성 검사 // 현재 사용중인 비밀번호가 아닙니다.팝업 출력 // 8자리 이상시 다음 버튼 활성화 // 키보드 커서 = 완료 ( 키보드 사라짐 ) [self.navigationController pushViewController:vc animated:YES]; } - (IBAction)btnCancelTouched:(id)sender { // [self dismissViewControllerAnimated:YES completion:nil]; [[self navigationController] popToRootViewControllerAnimated:YES]; } - (BOOL)textFieldShouldReturn:(UITextField *)textField { if ([textField isEqual:_txtInputPasswd]) { [textField resignFirstResponder]; } return YES; } - (void)didReceiveMemoryWarning { [super didReceiveMemoryWarning]; } @end