QuizViewController.m 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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.navigationController.navigationBar setHidden:YES];
  23. self.navigationController.interactivePopGestureRecognizer.enabled = NO;
  24. [_lblStep setColor:kUITextColor03 text:[NSString stringWithFormat:@"%@", @"/ 6"]];
  25. [self.btnOverlap setBackgroundImage:[UIImage imageNamed:@"img_btn_common_active"] forState:UIControlStateNormal capInsets:UIEdgeInsetsMake(kfTopInset,kfRightInset,kfBottomInset,kfLeftInset)];
  26. [self.btnOverlap setBackgroundImage:[UIImage imageNamed:@"img_btn_common_press"] forState:UIControlStateHighlighted capInsets:UIEdgeInsetsMake(kfTopInset,kfRightInset,kfBottomInset,kfLeftInset)];
  27. [self.btnOverlap setBackgroundImage:[UIImage imageNamed:@"img_btn_common_disable"] forState:UIControlStateDisabled capInsets:UIEdgeInsetsMake(kfTopInset,kfRightInset,kfBottomInset,kfLeftInset)];
  28. _txtYear.keyboardType = UIKeyboardTypeDefault;
  29. _txtMonth.keyboardType = UIKeyboardTypeDefault;
  30. _txtDay.keyboardType = UIKeyboardTypeDefault;
  31. _txtYear.returnKeyType = UIReturnKeyNext;
  32. _txtMonth.returnKeyType = UIReturnKeyNext;
  33. _txtDay.returnKeyType = UIReturnKeyDone;
  34. }
  35. - (IBAction)btnNextTouched:(id)sender {
  36. UIViewController *vc = [CommonUtil instantiateViewControllerWithIdentifier:@"UserNameSetViewController" storyboardName:@"SignUp"];
  37. // vc.providesPresentationContextTransitionStyle = YES;
  38. // vc.definesPresentationContext = YES;
  39. //
  40. // [vc setModalPresentationStyle:UIModalPresentationOverCurrentContext];
  41. //
  42. // [self presentViewController:vc animated:YES completion:nil];
  43. [self.navigationController pushViewController:vc animated:YES];
  44. }
  45. - (IBAction)btnCancelTouched:(id)sender {
  46. [self dismissViewControllerAnimated:YES completion:nil];
  47. }
  48. - (IBAction)btnOverlapTouched:(id)sender {
  49. }
  50. @end