ThingsAddCompleteViewController.m 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. - (IBAction)btnCompleteTouched:(id)sender {
  42. [[JDFacade facade] dismissModalStack:YES completion:^{
  43. [[JDFacade facade] gotoWishMenu:KNMenuIdThings];
  44. }];
  45. }
  46. #pragma mark - MemoryWarning
  47. - (void)didReceiveMemoryWarning
  48. {
  49. [super didReceiveMemoryWarning];
  50. // Dispose of any resources that can be recreated.
  51. }
  52. @end