ThingsAddCompleteViewController.m 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. //
  2. // ThingsAddCompleteViewController.m
  3. //
  4. //
  5. // Created by Jason Lee on 11/13/15.
  6. //
  7. //
  8. #import "ThingsAddCompleteViewController.h"
  9. @interface ThingsAddCompleteViewController () {
  10. }
  11. @end
  12. #pragma mark - Class Definition
  13. @implementation ThingsAddCompleteViewController
  14. - (void)viewDidLoad {
  15. [super viewDidLoad];
  16. // Do any additional setup after loading the view.
  17. [self initUI];
  18. [self prepareViewDidLoad];
  19. }
  20. - (void)initUI {
  21. if (_isDeleteMode) {
  22. _lblTitle.text = @"삭제 성공";
  23. _lblDesc.text = @"장치를 삭제했습니다";
  24. }
  25. }
  26. - (void)viewDidAppear:(BOOL)animated {
  27. [super viewDidAppear:animated];
  28. [UIView animateWithDuration:kfAnimationDur animations:^{
  29. _maskView.alpha = 0.7;
  30. } completion:^(BOOL finished) {
  31. _constraintPopViewTop.constant = (IPHONE_HEIGHT - _popView.height) / 2;
  32. [UIView animateWithDuration:kfAnimationDur animations:^{
  33. [self.view layoutIfNeeded];
  34. }];
  35. }];
  36. }
  37. - (void)prepareViewDidLoad {
  38. }
  39. #pragma mark - Main Logic
  40. #pragma mark - UI Events
  41. // 나중에 변경
  42. - (IBAction)btnCompleteTouched:(id)sender {
  43. [[JDFacade facade] dismissModalStack:YES completion:^{
  44. [[JDFacade facade] gotoWishMenu:KNMenuIdThings];
  45. }];
  46. }
  47. // 이름 변경
  48. - (IBAction)btnChangeTouched:(id)sender {
  49. }
  50. #pragma mark - MemoryWarning
  51. - (void)didReceiveMemoryWarning
  52. {
  53. [super didReceiveMemoryWarning];
  54. // Dispose of any resources that can be recreated.
  55. }
  56. @end