AboutViewController.m 1.37 KB
Newer Older
曹云霄's avatar
曹云霄 committed
1
//
2
//  AboutViewController.m
曹云霄's avatar
曹云霄 committed
3 4
//  Lighting
//
5
//  Created by 曹云霄 on 16/5/4.
曹云霄's avatar
曹云霄 committed
6 7 8
//  Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//

9
#import "AboutViewController.h"
曹云霄's avatar
曹云霄 committed
10

11
@interface AboutViewController ()
曹云霄's avatar
曹云霄 committed
12 13 14

@end

15
@implementation AboutViewController
曹云霄's avatar
曹云霄 committed
16

17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37

#pragma mark -渲染完成
- (void)viewDidAppear:(BOOL)animated
{
    [super viewDidAppear:animated];
    self.navigationController.fd_fullscreenPopGestureRecognizer.enabled = NO;
    if ([self.navigationController respondsToSelector:@selector(interactivePopGestureRecognizer)]) {
        self.navigationController.interactivePopGestureRecognizer.enabled = NO;
    }
}

#pragma mark -视图即将消失
- (void)viewWillDisappear:(BOOL)animated
{
    [super viewWillDisappear:animated];
    self.navigationController.fd_fullscreenPopGestureRecognizer.enabled = YES;
    if ([self.navigationController respondsToSelector:@selector(interactivePopGestureRecognizer)]) {
        self.navigationController.interactivePopGestureRecognizer.enabled = YES;
    }
}

曹云霄's avatar
曹云霄 committed
38 39
- (void)viewDidLoad {
    [super viewDidLoad];
40
    
polo2013's avatar
polo2013 committed
41 42 43 44 45 46
    self.versionLabe.layer.masksToBounds = YES;
    self.versionLabe.layer.cornerRadius = 10;
    self.versionLabe.layer.borderWidth = 2;
    self.versionLabe.layer.borderColor = kMainBlueColor.CGColor;
    self.versionLabe.textAlignment = NSTextAlignmentCenter;
    self.versionLabe.text = [self getAppVersion];
曹云霄's avatar
曹云霄 committed
47 48
}

polo2013's avatar
polo2013 committed
49 50


曹云霄's avatar
曹云霄 committed
51
@end