CertificationViewController.m 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. //
  2. // CertificationViewController.m
  3. // OneCable
  4. //
  5. // Created by nComz on 2017. 3. 17..
  6. // Copyright © 2017년 ntels. All rights reserved.
  7. //
  8. #import "CertificationViewController.h"
  9. #import "CustomButton.h"
  10. #import "CustomTextField.h"
  11. @interface CertificationViewController ()
  12. @end
  13. @implementation CertificationViewController
  14. - (void)viewDidLoad {
  15. [super viewDidLoad];
  16. [self initUI];
  17. }
  18. - (void)didReceiveMemoryWarning {
  19. [super didReceiveMemoryWarning];
  20. }
  21. - (void)initUI {
  22. [self.btnSend setBackgroundImage:[UIImage imageNamed:@"img_btn_common_active"] forState:UIControlStateNormal capInsets:UIEdgeInsetsMake(kfTopInset,kfRightInset,kfBottomInset,kfLeftInset)];
  23. [self.btnSend setBackgroundImage:[UIImage imageNamed:@"img_btn_common_press"] forState:UIControlStateHighlighted capInsets:UIEdgeInsetsMake(kfTopInset,kfRightInset,kfBottomInset,kfLeftInset)];
  24. [self.btnSend 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. _txtPhoneNum.keyboardType = UIKeyboardTypeDefault;
  28. _txtCertifyInput.keyboardType = UIKeyboardTypeDefault;
  29. _txtPhoneNum.returnKeyType = UIReturnKeyDone;
  30. _txtCertifyInput.returnKeyType = UIReturnKeyDone;
  31. }
  32. - (IBAction)btnNextTouched:(id)sender {
  33. UIViewController *vc = [CommonUtil instantiateViewControllerWithIdentifier:@"IDSetViewController" storyboardName:@"SignUp"];
  34. vc.providesPresentationContextTransitionStyle = YES;
  35. vc.definesPresentationContext = YES;
  36. [vc setModalPresentationStyle:UIModalPresentationOverCurrentContext];
  37. [self presentViewController:vc animated:YES completion:nil];
  38. }
  39. - (IBAction)btnCancelTouched:(id)sender {
  40. UIViewController *vc = [CommonUtil instantiateViewControllerWithIdentifier:@"LoginViewController" storyboardName:@"Main"];
  41. vc.providesPresentationContextTransitionStyle = NO;
  42. vc.definesPresentationContext = NO;
  43. [vc setModalPresentationStyle:UIModalPresentationOverCurrentContext];
  44. [self presentViewController:vc animated:YES completion:nil];
  45. }
  46. - (IBAction)btnSendTouched:(id)sender {
  47. }
  48. @end