// // 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 { UIView *statusBar = [[[UIApplication sharedApplication] valueForKey:@"statusBarWindow"] valueForKey:@"statusBar"]; statusBar.backgroundColor = [UIColor whiteColor]; _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"]; [self.navigationController pushViewController:vc animated:YES]; } - (IBAction)btnCancelTouched:(id)sender { [[self navigationController] popToRootViewControllerAnimated:YES]; } - (BOOL)textFieldShouldReturn:(UITextField *)textField { if ([textField isEqual:_txtInputPasswd]) { [textField resignFirstResponder]; } return YES; } - (void)didReceiveMemoryWarning { [super didReceiveMemoryWarning]; } @end