| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- //
- // SettingsPasswdInputViewController.m
- // OneCable
- //
- // Created by nComz on 2017. 4. 26..
- // Copyright © 2017년 ntels. All rights reserved.
- //
- #import "SettingsPasswdInputViewController.h"
- #import "CustomTextField.h"
- @interface SettingsPasswdInputViewController ()<CustomTextFieldDelegate>
- @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
|