WelcomeViewController.m 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. //
  2. // WelcomeViewController.m
  3. // kneet
  4. //
  5. // Created by Jason Lee on 4/23/15.
  6. // Copyright (c) 2015 ntels. All rights reserved.
  7. //
  8. #import "WelcomeViewController.h"
  9. #import "LoginModel.h"
  10. #import "CustomLabel.h"
  11. @interface WelcomeViewController () {
  12. }
  13. @end
  14. #pragma mark - Class Definition
  15. @implementation WelcomeViewController
  16. - (void)viewDidLoad {
  17. [super viewDidLoad];
  18. // Do any additional setup after loading the view.
  19. [self initUI];
  20. [self prepareViewDidLoad];
  21. }
  22. - (void)initUI {
  23. if (IPHONE_HEIGHT == 460.0f) {
  24. _constraintImgvAvatarTop.constant -= 75.0f;
  25. }
  26. }
  27. - (void)prepareViewDidLoad {
  28. _lblDesc.text = [NSString stringWithFormat:NSLocalizedString(@"지금부터 %@님의 홈을 시작합니다", @"지금부터 %@님의 홈을 시작합니다"), [JDFacade facade].loginUser.nickname];
  29. }
  30. #pragma mark - Main Logic
  31. #pragma mark - UI Events
  32. - (IBAction)btnStartTouched:(id)sender {
  33. UIViewController *vc = [CommonUtil instantiateViewControllerWithIdentifier:@"StartHomeViewController" storyboardName:@"SignUp"];
  34. [[JDFacade facade] presentViewControllerByPush:vc pvc:self];
  35. }
  36. #pragma mark - MemoryWarning
  37. - (void)didReceiveMemoryWarning
  38. {
  39. [super didReceiveMemoryWarning];
  40. // Dispose of any resources that can be recreated.
  41. }
  42. @end