From c2a34841a7c23752c584558c61227de07ecb6aa8 Mon Sep 17 00:00:00 2001
From: apple1 <apple@tardemac-mini.local>
Date: 星期五, 23 三月 2018 16:55:02 +0800
Subject: [PATCH] 3/23

---
 BuWanVideo2.0/MainViewController.m |   13 +++++++++++--
 1 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/BuWanVideo2.0/MainViewController.m b/BuWanVideo2.0/MainViewController.m
index ff1c0be..fbdbc42 100755
--- a/BuWanVideo2.0/MainViewController.m
+++ b/BuWanVideo2.0/MainViewController.m
@@ -29,6 +29,7 @@
 #import "MymessageContrlloer.h"
 #import "OnlySpecialController.h"
 
+
 @interface MainViewController ()<UIScrollViewDelegate>{
     recommendView *_recommend;
     liveOnLineView *_liveOnLine;
@@ -40,6 +41,8 @@
 @property (nonatomic, strong) HMSegmentedControl *segmentedControl;
 @property (nonatomic, assign) BOOL userOnLine;//鐢ㄦ埛鏄惁鐧诲綍
 @property (nonatomic, strong) UIView *Point;  //鎻愮ず绾㈢偣
+@property (nonatomic, strong) NSMutableArray *dataClass;//鍒嗗尯鏁版嵁
+
 
 @end
 
@@ -47,12 +50,14 @@
 
 - (void)viewDidLoad {
     [super viewDidLoad];
+    _dataClass = @[].mutableCopy;
     //鍔犺浇瀵艰埅鏍�
     [self loadNavigationbar];
     //妫�鏌ュ綋鍓嶇敤鎴锋槸鍚︾櫥褰�
     [self whetherLogin];
     //娣诲姞涓昏鍥剧殑segment
     [self creatSegmentView];
+    
     //娣诲姞閫氱煡
     [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(pushMessageVC:) name:@"pushMessageNotification" object:nil];
 }
@@ -175,8 +180,11 @@
  *  娣诲姞涓昏鍥剧殑segment
  */
 -(void)creatSegmentView{
+
+    
+    
     self.segmentedControl = [[HMSegmentedControl alloc] initWithSectionTitles:@[@"鎺ㄨ崘 ", @"鍒嗗尯 ", @"鍙戠幇 ", @"鍏虫敞 "]];
-    [self.segmentedControl setFrame:CGRectMake(0, kNavigationBarH, KScreenW, 40)];
+    [self.segmentedControl setFrame:CGRectMake(0, KScreenH - 40, KScreenW, 40)];
     self.segmentedControl.selectionIndicatorHeight = 2.0f;
     self.segmentedControl.backgroundColor = kGlobalMainColor;
     self.segmentedControl.titleTextAttributes = @{NSForegroundColorAttributeName : [UIColor whiteColor],NSFontAttributeName :[UIFont systemFontOfSize:15]};
@@ -200,7 +208,7 @@
     [self.view addSubview:self.segmentedControl];
     
     //閰嶇疆婊戝姩瑙嗗浘
-    self.scrollView = [[UIScrollView alloc] initWithFrame:CGRectMake(0, kNavigationBarH+40, KScreenW, KScreenH-kNavigationBarH-40)];
+    self.scrollView = [[UIScrollView alloc] initWithFrame:CGRectMake(0, kNavigationBarH, KScreenW, KScreenH-kNavigationBarH-40)];
     self.scrollView.pagingEnabled = YES;
     self.scrollView.showsHorizontalScrollIndicator = NO;
     self.scrollView.contentSize = CGSizeMake(KScreenW * 4, KScreenH-kNavigationBarH-40);
@@ -249,6 +257,7 @@
     [self.segmentedControl addSubview:_Point];
 }
 
+
 //灞曞紑渚ц竟鏍�
 -(void)presentLeftMenuViewController{
     [self.slideMenuController openLeft];

--
Gitblit v1.8.0