| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- //
- // HomeHubThirdStepViewController.m
- // kneet2
- //
- // Created by Jason Lee on 10/23/15.
- // Copyright © 2015 ntels. All rights reserved.
- //
- #import "HomeHubThirdStepViewController.h"
- @interface HomeHubThirdStepViewController () {
- }
- @end
- #pragma mark - Class Definition
- @implementation HomeHubThirdStepViewController
- - (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 = 64;
-
- [UIView animateWithDuration:kfAnimationDur animations:^{
- [self.view layoutIfNeeded];
- }];
- }];
- }
- - (void)prepareViewDidLoad {
-
- }
- #pragma mark - Main Logic
- #pragma mark - UI Events
- - (IBAction)btnPrevTouched:(id)sender {
- [UIView animateWithDuration:kfAnimationDur animations:^{
- _maskView.alpha = 0.0;
- } completion:^(BOOL finished) {
- [self dismissViewControllerAnimated:YES completion:nil];
- }];
- }
- - (IBAction)btnNextTouched:(id)sender {
- UIViewController *vc = [CommonUtil instantiateViewControllerWithIdentifier:@"QRCodeViewController" storyboardName:@"HomeHub"];
-
- vc.providesPresentationContextTransitionStyle = YES;
- vc.definesPresentationContext = YES;
-
- [vc setModalPresentationStyle:UIModalPresentationOverCurrentContext];
-
- [self presentViewController:vc animated:YES completion:nil];
- }
- - (IBAction)btnCloseTouched:(id)sender {
- [[JDFacade facade] dismissModalStack:YES completion:nil];
- }
- #pragma mark - MemoryWarning
- - (void)didReceiveMemoryWarning
- {
- [super didReceiveMemoryWarning];
- // Dispose of any resources that can be recreated.
- }
- @end
|