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/Main/LMJHomeViewController.m |  162 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 162 insertions(+), 0 deletions(-)

diff --git a/screendisplay/screendisplay/Classes/Main/LMJHomeViewController.m b/screendisplay/screendisplay/Classes/Main/LMJHomeViewController.m
new file mode 100755
index 0000000..0d622bc
--- /dev/null
+++ b/screendisplay/screendisplay/Classes/Main/LMJHomeViewController.m
@@ -0,0 +1,162 @@
+//
+//  LMJHomeViewController.m
+//  PLMMPRJK
+//
+//  Created by NJHu on 2017/3/29.
+//  Copyright �� 2017��� GoMePrjk. All rights reserved.
+//
+
+#import "LMJHomeViewController.h"
+#import "LMJWebViewController.h"
+//#import "LMJLiftCycleViewController.h"
+//#import "LMJRunTimeViewController.h"
+//#import "LMJNSThreadViewController.h"
+//#import "LMJGCDViewController.h"
+//#import "LMJNSOperationViewController.h"
+//#import "LMJLockViewController.h"
+//#import "LMJBlockLoopViewController.h"
+//#import "LMJRunLoopViewController.h"
+//#import "LMJDynamicViewController.h"
+//#import "LMJCoreAnimationViewController.h"
+//#import "LMJDrawRectViewController.h"
+//#import "LMJWebImagesCacheViewController.h"
+
+@interface LMJHomeViewController ()
+
+@end
+
+@implementation LMJHomeViewController
+
+#pragma mark viewController������������
+- (void)viewDidLoad {
+    [super viewDidLoad];
+    
+    UIEdgeInsets edgeInsets = self.tableView.contentInset;
+    edgeInsets.bottom += self.tabBarController.tabBar.lmj_height;
+    self.tableView.contentInset = edgeInsets;
+    
+   
+}
+
+
+
+#pragma mark - LMJNavUIBaseViewControllerDataSource
+//- (BOOL)navUIBaseViewControllerIsNeedNavBar:(LMJNavUIBaseViewController *)navUIBaseViewController
+//{
+//    return YES;
+//}
+
+
+
+#pragma mark - DataSource
+/**������������*/
+- (NSMutableAttributedString*)lmjNavigationBarTitle:(LMJNavigationBar *)navigationBar
+{
+    return [self changeTitle:@"������ ������������"];
+}
+
+/** ������������ */
+//- (UIImage *)lmjNavigationBarBackgroundImage:(LMJNavigationBar *)navigationBar
+//{
+//
+//}
+
+/** ��������� */
+//- (UIColor *)lmjNavigationBackgroundColor:(LMJNavigationBar *)navigationBar
+//{
+//
+//}
+
+/** ������������������������ */
+//- (BOOL)lmjNavigationIsHideBottomLine:(LMJNavigationBar *)navigationBar
+//{
+//    return NO;
+//}
+
+/** ������������������ */
+//- (CGFloat)lmjNavigationHeight:(LMJNavigationBar *)navigationBar
+//{
+//
+//}
+
+
+/** ��������������������� view */
+//- (UIView *)lmjNavigationBarLeftView:(LMJNavigationBar *)navigationBar
+//{
+//
+//}
+/** ������������������ view */
+//- (UIView *)lmjNavigationBarRightView:(LMJNavigationBar *)navigationBar
+//{
+//
+//}
+/** ������������������ View */
+//- (UIView *)lmjNavigationBarTitleView:(LMJNavigationBar *)navigationBar
+//{
+//
+//}
+/** ������������������������ */
+- (UIImage *)lmjNavigationBarLeftButtonImage:(UIButton *)leftButton navigationBar:(LMJNavigationBar *)navigationBar
+{
+    [leftButton setTitle:@"����" forState:UIControlStateNormal];
+    return nil;
+}
+/** ������������������������ */
+- (UIImage *)lmjNavigationBarRightButtonImage:(UIButton *)rightButton navigationBar:(LMJNavigationBar *)navigationBar
+{
+    [rightButton setTitle:@"����������������" forState:UIControlStateNormal];
+    
+    [rightButton setTitleColor:[UIColor RandomColor] forState:UIControlStateNormal];
+    [rightButton sizeToFit];
+    rightButton.lmj_width += 10;
+    rightButton.height = 44;
+    return nil;
+}
+
+
+
+#pragma mark - Delegate
+/** ������������������������ */
+-(void)leftButtonEvent:(UIButton *)sender navigationBar:(LMJNavigationBar *)navigationBar
+{
+    
+}
+/** ������������������������ */
+-(void)rightButtonEvent:(UIButton *)sender navigationBar:(LMJNavigationBar *)navigationBar
+{
+    LMJWebViewController *ac = [LMJWebViewController new];
+    ac.gotoURL = @"https://github.com/NJHu/iOSProject";
+    
+    [self.navigationController pushViewController:ac animated:YES];
+    NSLog(@"%s", __func__);
+}
+/** ��������������� label ��������������� */
+-(void)titleClickEvent:(UILabel *)sender navigationBar:(LMJNavigationBar *)navigationBar
+{
+    NSLog(@"%s", __func__);
+}
+
+
+#pragma mark ���������������
+
+-(NSMutableAttributedString *)changeTitle:(NSString *)curTitle
+{
+    NSMutableAttributedString *title = [[NSMutableAttributedString alloc] initWithString:curTitle ?: @""];
+    
+    [title addAttribute:NSForegroundColorAttributeName value:[UIColor blackColor] range:NSMakeRange(0, title.length)];
+    
+    [title addAttribute:NSFontAttributeName value:[UIFont systemFontOfSize:16] range:NSMakeRange(0, title.length)];
+    
+    return title;
+}
+
+
+
+
+
+
+@end
+
+
+
+

--
Gitblit v1.8.0