| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- //
- // ThingsAddFailViewController.m
- // kneet2
- //
- // Created by Jason Lee on 11/13/15.
- // Copyright © 2015 ntels. All rights reserved.
- //
- #import "ThingsAddFailViewController.h"
- #import "ThingsAddIncludeViewController.h"
- @interface ThingsAddFailViewController () {
- }
- @end
- #pragma mark - Class Definition
- @implementation ThingsAddFailViewController
- - (void)viewDidLoad {
- [super viewDidLoad];
- // Do any additional setup after loading the view.
-
- [self initUI];
- [self prepareViewDidLoad];
- }
- - (void)initUI {
-
- }
- - (void)viewDidAppear:(BOOL)animated {
- [super viewDidAppear:animated];
-
- [UIView animateWithDuration:kfAnimationDur animations:^{
- _maskView.alpha = 0.7;
- } completion:^(BOOL finished) {
-
- _constraintPopViewTop.constant = (IPHONE_HEIGHT - _popView.height) / 2;
-
- [UIView animateWithDuration:kfAnimationDur animations:^{
- [self.view layoutIfNeeded];
- }];
- }];
- }
- - (void)prepareViewDidLoad {
-
- }
- #pragma mark - Main Logic
- #pragma mark - UI Events
- - (IBAction)btnRetryTouched:(id)sender {
- if ([[JDFacade facade].loginUser.homehubOnlineState isEqualToString:@"OFF"]) {
- [[JDFacade facade] toast:@"홈허브가 온라인 상태로\r연결되어 있을 때 시도해주세요"];
- return;
- }
-
- ThingsAddIncludeViewController *vc = [CommonUtil instantiateViewControllerWithIdentifier:@"ThingsAddIncludeViewController" storyboardName:@"Things"];
- vc.addableDevice = _addableDevice;
-
- vc.providesPresentationContextTransitionStyle = YES;
- vc.definesPresentationContext = YES;
-
- [vc setModalPresentationStyle:UIModalPresentationOverCurrentContext];
-
- [self presentViewController:vc animated:YES completion:nil];
- }
- - (IBAction)btnCancelTouched:(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
|