QuizViewController.m 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. //
  2. // QuizViewController.m
  3. // OneCable
  4. //
  5. // Created by nComz on 2017. 3. 17..
  6. // Copyright © 2017년 ntels. All rights reserved.
  7. //
  8. #import "QuizViewController.h"
  9. #import "CustomButton.h"
  10. #import "CustomTextField.h"
  11. @interface QuizViewController ()
  12. @end
  13. @implementation QuizViewController
  14. - (void)viewDidLoad {
  15. [super viewDidLoad];
  16. [self initUI];
  17. }
  18. - (void)didReceiveMemoryWarning {
  19. [super didReceiveMemoryWarning];
  20. }
  21. - (void)initUI {
  22. [self.btnOverlap setBackgroundImage:[UIImage imageNamed:@"img_btn_common_active"] forState:UIControlStateNormal capInsets:UIEdgeInsetsMake(kfTopInset,kfRightInset,kfBottomInset,kfLeftInset)];
  23. [self.btnOverlap setBackgroundImage:[UIImage imageNamed:@"img_btn_common_press"] forState:UIControlStateHighlighted capInsets:UIEdgeInsetsMake(kfTopInset,kfRightInset,kfBottomInset,kfLeftInset)];
  24. [self.btnOverlap setBackgroundImage:[UIImage imageNamed:@"img_btn_common_disable"] forState:UIControlStateDisabled capInsets:UIEdgeInsetsMake(kfTopInset,kfRightInset,kfBottomInset,kfLeftInset)];
  25. [self.btnCancel setBackgroundImage:[UIImage imageNamed:@"Common_button_left_bg"] forState:UIControlStateNormal capInsets:UIEdgeInsetsMake(kfTopInset,kfRightInset,kfBottomInset,kfLeftInset)];
  26. [self.btnNext setBackgroundImage:[UIImage imageNamed:@"Common_button_right_bg"] forState:UIControlStateNormal capInsets:UIEdgeInsetsMake(kfTopInset,kfRightInset,kfBottomInset,kfLeftInset)];
  27. _txtYear.keyboardType = UIKeyboardTypeDefault;
  28. _txtMonth.keyboardType = UIKeyboardTypeDefault;
  29. _txtDay.keyboardType = UIKeyboardTypeDefault;
  30. _txtYear.returnKeyType = UIReturnKeyNext;
  31. _txtMonth.returnKeyType = UIReturnKeyNext;
  32. _txtDay.returnKeyType = UIReturnKeyDone;
  33. }
  34. - (IBAction)btnNextTouched:(id)sender {
  35. UIViewController *vc = [CommonUtil instantiateViewControllerWithIdentifier:@"UserNameSetViewController" storyboardName:@"SignUp"];
  36. vc.providesPresentationContextTransitionStyle = YES;
  37. vc.definesPresentationContext = YES;
  38. [vc setModalPresentationStyle:UIModalPresentationOverCurrentContext];
  39. [self presentViewController:vc animated:YES completion:nil];
  40. }
  41. - (IBAction)btnCancelTouched:(id)sender {
  42. [self dismissViewControllerAnimated:YES completion:nil];
  43. }
  44. - (IBAction)btnOverlapTouched:(id)sender {
  45. }
  46. @end