SettingsPasswdSetViewController.m 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. //
  2. // SettingsPasswdSetViewController.m
  3. // OneCable
  4. //
  5. // Created by nComz on 2017. 4. 19..
  6. // Copyright © 2017년 ntels. All rights reserved.
  7. //
  8. #import "SettingsPasswdSetViewController.h"
  9. #import "CustomTextField.h"
  10. #import "CustomButton.h"
  11. #import "CustomLabel.h"
  12. @interface SettingsPasswdSetViewController () <CustomTextFieldDelegate>
  13. @end
  14. @implementation SettingsPasswdSetViewController
  15. - (void)viewDidLoad {
  16. [super viewDidLoad];
  17. [self initUI];
  18. }
  19. - (void)initUI {
  20. UIView *statusBar = [[[UIApplication sharedApplication] valueForKey:@"statusBarWindow"] valueForKey:@"statusBar"];
  21. statusBar.backgroundColor = [UIColor whiteColor];
  22. _txtInputPasswd.returnKeyType = UIReturnKeyDone;
  23. _txtInputPasswd.delegate = self;
  24. [self.navigationController.navigationBar setHidden:YES];
  25. self.navigationController.interactivePopGestureRecognizer.enabled = NO;
  26. }
  27. - (IBAction)btnCancelTouched:(id)sender {
  28. [[self navigationController] popToRootViewControllerAnimated:YES];
  29. }
  30. - (IBAction)btnSaveTouched:(id)sender {
  31. [[self navigationController] popToRootViewControllerAnimated:YES];
  32. }
  33. - (BOOL)textFieldShouldReturn:(UITextField *)textField {
  34. if ([textField isEqual:_txtInputPasswd]) {
  35. [textField resignFirstResponder];
  36. }
  37. return YES;
  38. }
  39. - (void)didReceiveMemoryWarning {
  40. [super didReceiveMemoryWarning];
  41. }
  42. @end