// // QuizViewController.m // OneCable // // Created by nComz on 2017. 3. 17.. // Copyright © 2017년 ntels. All rights reserved. // #import "QuizViewController.h" #import "CustomButton.h" #import "CustomTextField.h" @interface QuizViewController () @end @implementation QuizViewController - (void)viewDidLoad { [super viewDidLoad]; [self initUI]; } - (void)didReceiveMemoryWarning { [super didReceiveMemoryWarning]; } - (void)initUI { [self.btnOverlap setBackgroundImage:[UIImage imageNamed:@"img_btn_common_active"] forState:UIControlStateNormal capInsets:UIEdgeInsetsMake(kfTopInset,kfRightInset,kfBottomInset,kfLeftInset)]; [self.btnOverlap setBackgroundImage:[UIImage imageNamed:@"img_btn_common_press"] forState:UIControlStateHighlighted capInsets:UIEdgeInsetsMake(kfTopInset,kfRightInset,kfBottomInset,kfLeftInset)]; [self.btnOverlap setBackgroundImage:[UIImage imageNamed:@"img_btn_common_disable"] forState:UIControlStateDisabled capInsets:UIEdgeInsetsMake(kfTopInset,kfRightInset,kfBottomInset,kfLeftInset)]; [self.btnCancel setBackgroundImage:[UIImage imageNamed:@"Common_button_left_bg"] forState:UIControlStateNormal capInsets:UIEdgeInsetsMake(kfTopInset,kfRightInset,kfBottomInset,kfLeftInset)]; [self.btnNext setBackgroundImage:[UIImage imageNamed:@"Common_button_right_bg"] forState:UIControlStateNormal capInsets:UIEdgeInsetsMake(kfTopInset,kfRightInset,kfBottomInset,kfLeftInset)]; _txtYear.keyboardType = UIKeyboardTypeDefault; _txtMonth.keyboardType = UIKeyboardTypeDefault; _txtDay.keyboardType = UIKeyboardTypeDefault; _txtYear.returnKeyType = UIReturnKeyNext; _txtMonth.returnKeyType = UIReturnKeyNext; _txtDay.returnKeyType = UIReturnKeyDone; } - (IBAction)btnNextTouched:(id)sender { UIViewController *vc = [CommonUtil instantiateViewControllerWithIdentifier:@"UserNameSetViewController" storyboardName:@"SignUp"]; vc.providesPresentationContextTransitionStyle = YES; vc.definesPresentationContext = YES; [vc setModalPresentationStyle:UIModalPresentationOverCurrentContext]; [self presentViewController:vc animated:YES completion:nil]; } - (IBAction)btnCancelTouched:(id)sender { [self dismissViewControllerAnimated:YES completion:nil]; } - (IBAction)btnOverlapTouched:(id)sender { } @end