SettingsPasswdInputViewController.m 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. //
  2. // SettingsPasswdInputViewController.m
  3. // OneCable
  4. //
  5. // Created by nComz on 2017. 4. 26..
  6. // Copyright © 2017년 ntels. All rights reserved.
  7. //
  8. #import "SettingsPasswdInputViewController.h"
  9. #import "CustomTextField.h"
  10. @interface SettingsPasswdInputViewController ()<CustomTextFieldDelegate>
  11. @end
  12. @implementation SettingsPasswdInputViewController
  13. - (void)viewDidLoad {
  14. [super viewDidLoad];
  15. [self initUI];
  16. }
  17. - (void)initUI {
  18. _txtInputPasswd.returnKeyType = UIReturnKeyDone;
  19. _txtInputPasswd.delegate = self;
  20. [self.navigationController.navigationBar setHidden:YES];
  21. self.navigationController.interactivePopGestureRecognizer.enabled = NO;
  22. }
  23. - (IBAction)btnNextTouched:(id)sender {
  24. UIViewController *vc = [CommonUtil instantiateViewControllerWithIdentifier:@"SettingsPasswdSetViewController" storyboardName:@"Settings"];
  25. // 유효성 검사
  26. // 현재 사용중인 비밀번호가 아닙니다.팝업 출력
  27. // 8자리 이상시 다음 버튼 활성화
  28. // 키보드 커서 = 완료 ( 키보드 사라짐 )
  29. [self.navigationController pushViewController:vc animated:YES];
  30. }
  31. - (IBAction)btnCancelTouched:(id)sender {
  32. // [self dismissViewControllerAnimated:YES completion:nil];
  33. [[self navigationController] popToRootViewControllerAnimated:YES];
  34. }
  35. - (BOOL)textFieldShouldReturn:(UITextField *)textField {
  36. if ([textField isEqual:_txtInputPasswd]) {
  37. [textField resignFirstResponder];
  38. }
  39. return YES;
  40. }
  41. - (void)didReceiveMemoryWarning {
  42. [super didReceiveMemoryWarning];
  43. }
  44. @end