Commit a5062ade5679c2c3354907890efea70bce78df31
1 parent
36f1e2f2
英文轮播图隐藏,启动显示逻辑展示
Showing
2 changed files
with
9 additions
and
8 deletions
CNLiveScioLive/AppDelegate.m
| @@ -140,13 +140,7 @@ | @@ -140,13 +140,7 @@ | ||
| 140 | [downloadTask resume ]; | 140 | [downloadTask resume ]; |
| 141 | } | 141 | } |
| 142 | } failure:^(NSError *error) { | 142 | } failure:^(NSError *error) { |
| 143 | - ++requestTime; | ||
| 144 | - if (requestTime<3) { | ||
| 145 | - [self requestLanchImage:requestTime]; | ||
| 146 | - }else | ||
| 147 | - { | ||
| 148 | - exit(0); | ||
| 149 | - } | 143 | + [self addRootViewController]; |
| 150 | 144 | ||
| 151 | }]; | 145 | }]; |
| 152 | 146 |
CNLiveScioLive/Pages/Home/CNHomeENViewController.m
| @@ -97,9 +97,17 @@ static NSString *newsUpPicTableViewCell = @"CNLiveNewsUpPicTableViewCell"; | @@ -97,9 +97,17 @@ static NSString *newsUpPicTableViewCell = @"CNLiveNewsUpPicTableViewCell"; | ||
| 97 | [imagesURLStrings addObject:model.img]; | 97 | [imagesURLStrings addObject:model.img]; |
| 98 | 98 | ||
| 99 | } | 99 | } |
| 100 | + if (titles.count!=0) { | ||
| 101 | + self.tableView.tableHeaderView = self.cycleScrollView; | ||
| 100 | self.cycleScrollView.titlesGroup = titles; | 102 | self.cycleScrollView.titlesGroup = titles; |
| 101 | self.cycleScrollView.imageURLStringsGroup = imagesURLStrings; | 103 | self.cycleScrollView.imageURLStringsGroup = imagesURLStrings; |
| 104 | + } | ||
| 102 | 105 | ||
| 106 | + }else | ||
| 107 | + { | ||
| 108 | + if (self.pageNo == 2) { | ||
| 109 | + self.tableView.tableHeaderView = nil; | ||
| 110 | + } | ||
| 103 | } | 111 | } |
| 104 | 112 | ||
| 105 | } else { | 113 | } else { |
| @@ -151,7 +159,6 @@ static NSString *newsUpPicTableViewCell = @"CNLiveNewsUpPicTableViewCell"; | @@ -151,7 +159,6 @@ static NSString *newsUpPicTableViewCell = @"CNLiveNewsUpPicTableViewCell"; | ||
| 151 | _isRefreshing = NO; | 159 | _isRefreshing = NO; |
| 152 | 160 | ||
| 153 | [self.view addSubview:self.tableView]; | 161 | [self.view addSubview:self.tableView]; |
| 154 | - self.tableView.tableHeaderView = self.cycleScrollView; | ||
| 155 | 162 | ||
| 156 | [self loadData]; | 163 | [self loadData]; |
| 157 | 164 |