//
//  ThingsAddCompleteViewController.m
//  
//
//  Created by Jason Lee on 11/13/15.
//
//

#import "ThingsAddCompleteViewController.h"


@interface ThingsAddCompleteViewController () {

}
@end


#pragma mark - Class Definition

@implementation ThingsAddCompleteViewController


- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    [self initUI];
    [self prepareViewDidLoad];
}


- (void)initUI {
    if (_isDeleteMode) {
        _lblTitle.text = @"삭제 성공";
        _lblDesc.text = @"장치를 삭제했습니다";
    }
}

- (void)viewDidAppear:(BOOL)animated {
    [super viewDidAppear:animated];
    
    [UIView animateWithDuration:kfAnimationDur animations:^{
        _maskView.alpha = 0.7;
    } completion:^(BOOL finished) {
        
        _constraintPopViewTop.constant = 64;
        
        [UIView animateWithDuration:kfAnimationDur animations:^{
            [self.view layoutIfNeeded];
        }];
    }];
}

- (void)prepareViewDidLoad {
    
}

#pragma mark - Main Logic



#pragma mark - UI Events
- (IBAction)btnCompleteTouched:(id)sender {
    
    [[JDFacade facade] dismissModalStack:YES completion:^{
        [[JDFacade facade] gotoWishMenu:KNMenuIdThings];
    }];
}


#pragma mark - MemoryWarning
- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}



@end