From 3e8437ae559487362fae3525beb79c534c213a51 Mon Sep 17 00:00:00 2001 From: 单军华 Date: Thu, 12 Jul 2018 13:44:34 +0800 Subject: [PATCH] bug修复和功能优化 --- screendisplay/screendisplay/Classes/Base/BaseControllers/LMJBaseViewController.m | 73 ++++++++++++++++++++++++++++++++++++ 1 files changed, 73 insertions(+), 0 deletions(-) diff --git a/screendisplay/screendisplay/Classes/Base/BaseControllers/LMJBaseViewController.m b/screendisplay/screendisplay/Classes/Base/BaseControllers/LMJBaseViewController.m new file mode 100755 index 0000000..b67c6c0 --- /dev/null +++ b/screendisplay/screendisplay/Classes/Base/BaseControllers/LMJBaseViewController.m @@ -0,0 +1,73 @@ +// +// LLMJBBaseViewController.m +// PLMMPRJK +// +// Created by windshan on 2017/4/11. +// Copyright �� 2017��� GoMePrjk. All rights reserved. +// + +#import "LMJBaseViewController.h" + +@interface LMJBaseViewController () + + + +@end + +@implementation LMJBaseViewController + + +#pragma mark - ������������ +- (void)viewDidLoad { + [super viewDidLoad]; + self.view.backgroundColor = [UIColor groupTableViewBackgroundColor]; + self.automaticallyAdjustsScrollViewInsets = NO; + static dispatch_once_t onceToken; + dispatch_once(&onceToken, ^{ + if (@available(iOS 11.0, *)){ + [[UIScrollView appearanceWhenContainedInInstancesOfClasses:@[[LMJBaseViewController class]]] setContentInsetAdjustmentBehavior:UIScrollViewContentInsetAdjustmentNever]; + } + }); +} + +- (void)viewWillAppear:(BOOL)animated +{ + [super viewWillAppear:animated]; + +} + + +- (void)viewWillDisappear:(BOOL)animated +{ + [super viewWillDisappear:animated]; +} + + +- (void)viewDidDisappear:(BOOL)animated +{ + [super viewDidDisappear:animated]; + +} + +- (instancetype)initWithTitle:(NSString *)title +{ + if (self = [super init]) { + self.title = title.copy; + } + return self; +} + +- (void)dealloc +{ + NSLog(@"dealloc---%@", self.class); + [[NSNotificationCenter defaultCenter] removeObserver:self]; +} + +@end + + + + + + + -- Gitblit v1.8.0