| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- //
- // SettingsPasswdSetViewController.m
- // OneCable
- //
- // Created by nComz on 2017. 4. 19..
- // Copyright © 2017년 ntels. All rights reserved.
- //
- #import "SettingsPasswdSetViewController.h"
- #import "CustomTextField.h"
- #import "CustomButton.h"
- #import "CustomLabel.h"
- @interface SettingsPasswdSetViewController () <CustomTextFieldDelegate>
- @end
- @implementation SettingsPasswdSetViewController
- - (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)btnCancelTouched:(id)sender {
- [[self navigationController] popToRootViewControllerAnimated:YES];
- }
- - (IBAction)btnSaveTouched:(id)sender {
- // 두 입력 값 불일치 -
- // 입력된 비밀번호가 서로 일치하지 않습니다.
- // 다시 한 번 확인해주세요.
- // 비밀번호 설정 정책 위배 -
- // "영문 대/소문자,숫자,특수기호" 중 2가지 이상을 조합하여
- // 8~20 자리로 비밀번호를 설정해주세요.
- // 정책 ( 영문 필수 , 2개 이상조합 , 대/소문자 구분)
- // 8자리 이상시 버튼 활성화
- }
- - (BOOL)textFieldShouldReturn:(UITextField *)textField {
- if ([textField isEqual:_txtInputPasswd]) {
- [textField resignFirstResponder];
- }
- return YES;
-
- }
- - (void)didReceiveMemoryWarning {
- [super didReceiveMemoryWarning];
- }
- @end
|