UserNameSetViewController.m 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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.navigationController.navigationBar setHidden:YES];
  23. [self.btnCancel setBackgroundImage:[UIImage imageNamed:@"Common_button_left_bg"] forState:UIControlStateNormal capInsets:UIEdgeInsetsMake(kfTopInset,kfRightInset,kfBottomInset,kfLeftInset)];
  24. [self.btnNext setBackgroundImage:[UIImage imageNamed:@"Common_button_right_bg"] forState:UIControlStateNormal capInsets:UIEdgeInsetsMake(kfTopInset,kfRightInset,kfBottomInset,kfLeftInset)];
  25. _txtNickInput.keyboardType = UIKeyboardTypeDefault;
  26. _txtNickInput.returnKeyType = UIReturnKeyDone;
  27. }
  28. - (IBAction)btnNextTouched:(id)sender {
  29. UIViewController *vc = [CommonUtil instantiateViewControllerWithIdentifier:@"JoinFinishViewController" storyboardName:@"SignUp"];
  30. // vc.providesPresentationContextTransitionStyle = YES;
  31. // vc.definesPresentationContext = YES;
  32. //
  33. // [vc setModalPresentationStyle:UIModalPresentationOverCurrentContext];
  34. //
  35. // [self presentViewController:vc animated:YES completion:nil];
  36. [self.navigationController pushViewController:vc animated:YES];
  37. }
  38. - (IBAction)btnCancelTouched:(id)sender {
  39. [self dismissViewControllerAnimated:YES completion:nil];
  40. }
  41. @end