SettingsPasswdInputViewController.m 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. UIView *statusBar = [[[UIApplication sharedApplication] valueForKey:@"statusBarWindow"] valueForKey:@"statusBar"];
  19. statusBar.backgroundColor = [UIColor whiteColor];
  20. _txtInputPasswd.returnKeyType = UIReturnKeyDone;
  21. _txtInputPasswd.delegate = self;
  22. [self.navigationController.navigationBar setHidden:YES];
  23. self.navigationController.interactivePopGestureRecognizer.enabled = NO;
  24. }
  25. - (IBAction)btnNextTouched:(id)sender {
  26. UIViewController *vc = [CommonUtil instantiateViewControllerWithIdentifier:@"SettingsPasswdSetViewController" storyboardName:@"Settings"];
  27. [self.navigationController pushViewController:vc animated:YES];
  28. }
  29. - (IBAction)btnCancelTouched:(id)sender {
  30. [[self navigationController] popToRootViewControllerAnimated:YES];
  31. }
  32. - (BOOL)textFieldShouldReturn:(UITextField *)textField {
  33. if ([textField isEqual:_txtInputPasswd]) {
  34. [textField resignFirstResponder];
  35. }
  36. return YES;
  37. }
  38. - (void)didReceiveMemoryWarning {
  39. [super didReceiveMemoryWarning];
  40. }
  41. @end