UserNameSetViewController.m 1.5 KB

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