Files
2026-07-13 12:35:01 +08:00

61 lines
1.1 KiB
Objective-C

//
// TLViewController.m
// TLChat
//
// Created by 李伯坤 on 16/1/23.
// Copyright © 2016年 李伯坤. All rights reserved.
//
#import "TLViewController.h"
@implementation TLViewController
- (id)init
{
if (self = [super init]) {
[self setStatusBarStyle:UIStatusBarStyleLightContent];
}
return self;
}
- (void)viewDidLoad
{
[super viewDidLoad];
[self.view setBackgroundColor:[UIColor colorGrayBG]];
}
- (void)viewWillAppear:(BOOL)animated
{
[super viewWillAppear:animated];
[MobClick beginLogPageView:self.analyzeTitle];
if ([UIApplication sharedApplication].statusBarStyle != self.statusBarStyle) {
[UIApplication sharedApplication].statusBarStyle = self.statusBarStyle;
}
}
- (void)viewWillDisappear:(BOOL)animated
{
[super viewWillDisappear:animated];
[MobClick endLogPageView:self.analyzeTitle];
}
- (void)dealloc
{
#ifdef DEBUG_MEMERY
NSLog(@"dealloc %@", self.navigationItem.title);
#endif
}
#pragma mark - # Getter
- (NSString *)analyzeTitle
{
if (_analyzeTitle == nil) {
return self.navigationItem.title;
}
return _analyzeTitle;
}
@end