Commit eb5247c46571b44911bab9ab30c2f95cd5a67aff
1 parent
86688df0
1.app横屏启动问题
2.通知公告英文数据 3.播放器的状态颜色 4.网页没有数据,相关信息隐藏
Showing
10 changed files
with
35 additions
and
16 deletions
CNLiveScioLive.xcodeproj/project.pbxproj
| ... | ... | @@ -3598,8 +3598,8 @@ |
| 3598 | 3598 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; |
| 3599 | 3599 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; |
| 3600 | 3600 | CODE_SIGN_ENTITLEMENTS = CNLiveScioLive/CNLiveScioLive.entitlements; |
| 3601 | - CODE_SIGN_IDENTITY = "iPhone Distribution"; | |
| 3602 | - CODE_SIGN_STYLE = Manual; | |
| 3601 | + CODE_SIGN_IDENTITY = "Apple Development"; | |
| 3602 | + CODE_SIGN_STYLE = Automatic; | |
| 3603 | 3603 | CURRENT_PROJECT_VERSION = 381; |
| 3604 | 3604 | DEVELOPMENT_TEAM = 94X49GG3ZW; |
| 3605 | 3605 | ENABLE_BITCODE = NO; |
| ... | ... | @@ -3638,7 +3638,7 @@ |
| 3638 | 3638 | MARKETING_VERSION = 3.6.1; |
| 3639 | 3639 | PRODUCT_BUNDLE_IDENTIFIER = cn.gov.scio.live1; |
| 3640 | 3640 | PRODUCT_NAME = "$(TARGET_NAME)"; |
| 3641 | - PROVISIONING_PROFILE_SPECIFIER = SCIOLiveDis_AppStore; | |
| 3641 | + PROVISIONING_PROFILE_SPECIFIER = ""; | |
| 3642 | 3642 | TARGETED_DEVICE_FAMILY = 1; |
| 3643 | 3643 | VALID_ARCHS = "arm64 arm64e armv7s"; |
| 3644 | 3644 | }; |
| ... | ... | @@ -3651,8 +3651,8 @@ |
| 3651 | 3651 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; |
| 3652 | 3652 | ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; |
| 3653 | 3653 | CODE_SIGN_ENTITLEMENTS = CNLiveScioLive/CNLiveScioLive.entitlements; |
| 3654 | - CODE_SIGN_IDENTITY = "iPhone Distribution"; | |
| 3655 | - CODE_SIGN_STYLE = Manual; | |
| 3654 | + CODE_SIGN_IDENTITY = "Apple Development"; | |
| 3655 | + CODE_SIGN_STYLE = Automatic; | |
| 3656 | 3656 | CURRENT_PROJECT_VERSION = 381; |
| 3657 | 3657 | DEVELOPMENT_TEAM = 94X49GG3ZW; |
| 3658 | 3658 | ENABLE_BITCODE = NO; |
| ... | ... | @@ -3691,7 +3691,7 @@ |
| 3691 | 3691 | MARKETING_VERSION = 3.6.1; |
| 3692 | 3692 | PRODUCT_BUNDLE_IDENTIFIER = cn.gov.scio.live1; |
| 3693 | 3693 | PRODUCT_NAME = "$(TARGET_NAME)"; |
| 3694 | - PROVISIONING_PROFILE_SPECIFIER = SCIOLiveDis_AppStore; | |
| 3694 | + PROVISIONING_PROFILE_SPECIFIER = ""; | |
| 3695 | 3695 | TARGETED_DEVICE_FAMILY = 1; |
| 3696 | 3696 | VALID_ARCHS = "arm64 arm64e armv7s"; |
| 3697 | 3697 | }; | ... | ... |
CNLiveScioLive/AppDelegate.m
CNLiveScioLive/Info.plist
| ... | ... | @@ -109,8 +109,6 @@ |
| 109 | 109 | <key>UISupportedInterfaceOrientations</key> |
| 110 | 110 | <array> |
| 111 | 111 | <string>UIInterfaceOrientationPortrait</string> |
| 112 | - <string>UIInterfaceOrientationLandscapeLeft</string> | |
| 113 | - <string>UIInterfaceOrientationLandscapeRight</string> | |
| 114 | 112 | </array> |
| 115 | 113 | <key>UISupportedInterfaceOrientations~ipad</key> |
| 116 | 114 | <array> | ... | ... |
CNLiveScioLive/Pages/Home/新闻详情/Controller/VideoDetailViewController.m
| ... | ... | @@ -150,13 +150,13 @@ static NSString *newsLeftPicTableViewCell = @"CNLiveNewsLeftPicTableViewCell"; |
| 150 | 150 | |
| 151 | 151 | if (self.model.publishDate && self.model.author) { |
| 152 | 152 | htmldate = [[NSString alloc] initWithFormat:@"<html><p>%@</p><body>",[NSString stringWithFormat:@"%@",self.model.publishDate]]; |
| 153 | - htmlForm = [[NSString alloc] initWithFormat:@"<html><p>来源:%@</p><body>", self.model.author]; | |
| 153 | + htmlForm = [[NSString alloc] initWithFormat:@"<html><p>%@:%@</p><body>", CustomStr(@"SourceSource"), self.model.author]; | |
| 154 | 154 | self.authorName = self.model.author; |
| 155 | 155 | } else { |
| 156 | 156 | htmldate = [[NSString alloc] initWithFormat:@"<html><p>%@</p><body>",[NSString stringWithFormat:@"%@",self.model.publishDate]]; |
| 157 | 157 | NSDictionary *author = [NSDictionary dictionaryWithContentsOfFile:FavouriteAuthors_PATH]; |
| 158 | 158 | self.authorName = author[self.model.pageUrl]; |
| 159 | - htmlForm = [[NSString alloc] initWithFormat:@"<html><p>来源:%@</p><body>", self.authorName]; | |
| 159 | + htmlForm = [[NSString alloc] initWithFormat:@"<html><p>%@:%@</p><body>", CustomStr(@"SourceSource"), self.authorName]; | |
| 160 | 160 | } |
| 161 | 161 | |
| 162 | 162 | NSString* htmlBody = [[NSString alloc] initWithFormat:@"<div class=\"logo\" style=\"text-indent:2em\"><font style=\"font-size:%@px;\">%@</font></div>",_fontArray[_fontIndex],self.model.desc]; | ... | ... |
CNLiveScioLive/Pages/Home/新闻详情/OldController/OldArticleDetailViewController.m
| ... | ... | @@ -65,7 +65,7 @@ |
| 65 | 65 | "</script>\n" |
| 66 | 66 | "<div id=\"webview_content\"><p><font style=\"font-size:20px;\"><strong>%@</strong></font><p>%@</p><font color=\"#184085\">%@</font></p><div><font style=\"font-size:%@px;\">%@</font></div></div>" |
| 67 | 67 | "</body>" |
| 68 | - "</html>",[_dictionary objectForKey:@"title"],[_dictionary objectForKey:@"createDate"],[NSString stringWithFormat:@"来源:%@",author?author:@"国新网"],fontArray[fontIndex],content]; | |
| 68 | + "</html>",[_dictionary objectForKey:@"title"],[_dictionary objectForKey:@"createDate"],[NSString stringWithFormat:@"%@:%@",CustomStr(@"Source"), author?author:@"国新网"],fontArray[fontIndex],content]; | |
| 69 | 69 | // NSString * htmlcontent = [NSString stringWithFormat:@"<div id=\"webview_content_wrapper\">%@<font style=\"font-size:%@px;\">%@</font></div>",htmlHeader,fontArray[fontIndex],content]; |
| 70 | 70 | NSLog(@"htmlcontent = %@",htmlcontent); |
| 71 | 71 | return htmlcontent; |
| ... | ... | @@ -519,10 +519,11 @@ |
| 519 | 519 | return 86.0f; |
| 520 | 520 | } |
| 521 | 521 | - (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section { |
| 522 | - return 30.0; | |
| 522 | + return _newsArray.count>0?30.0:0.00001; | |
| 523 | 523 | } |
| 524 | 524 | - (nullable UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section { |
| 525 | 525 | UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, 0, MainScreenWidth, 30)]; |
| 526 | + view.hidden = _newsArray.count == 0; | |
| 526 | 527 | view.backgroundColor = [UIColor whiteColor]; |
| 527 | 528 | UIImageView *lineImage1 = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, MainScreenWidth, 1)]; |
| 528 | 529 | lineImage1.backgroundColor = Color_Line; |
| ... | ... | @@ -537,7 +538,7 @@ |
| 537 | 538 | return view; |
| 538 | 539 | } |
| 539 | 540 | - (CGFloat)tableView:(UITableView*)tableView heightForFooterInSection:(NSInteger)section { |
| 540 | - return 6.0; | |
| 541 | + return _newsArray.count>0?6.0:0.00001; | |
| 541 | 542 | } |
| 542 | 543 | - (nullable UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section { |
| 543 | 544 | UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, 0, MainScreenWidth, 6)]; | ... | ... |
CNLiveScioLive/Pages/Live/Controller/GraphicLiveViewController.m
| ... | ... | @@ -150,7 +150,7 @@ |
| 150 | 150 | relatedWebView.tag = 1000; |
| 151 | 151 | [backgroundView addSubview:relatedWebView]; |
| 152 | 152 | |
| 153 | - NSString* htmlHeader = [[NSString alloc] initWithFormat:@"<html><font style=\"font-size:20px;\"><strong>%@</strong></font><br><p>%@</p><p>来源:%@</p><body>",[_dictionary objectForKey:@"title"],[_dictionary objectForKey:@"liveStartDateTime"], @"国新网"]; | |
| 153 | + NSString* htmlHeader = [[NSString alloc] initWithFormat:@"<html><font style=\"font-size:20px;\"><strong>%@</strong></font><br><p>%@</p><p>%@:%@</p><body>",[_dictionary objectForKey:@"title"],[_dictionary objectForKey:@"liveStartDateTime"], CustomStr(@"Source"), @"国新网"]; | |
| 154 | 154 | NSString* htmlFooter = [[NSString alloc] initWithFormat:@"<div class=\"logo\" style=\"text-indent:2em\">%@</div></body></html>",[_dictionary objectForKey:@"Description"]]; |
| 155 | 155 | |
| 156 | 156 | NSString* strHtml = [[NSString alloc] initWithFormat:@"%@%@",htmlHeader,htmlFooter]; |
| ... | ... | @@ -569,4 +569,8 @@ |
| 569 | 569 | return UIInterfaceOrientationMaskAllButUpsideDown; |
| 570 | 570 | } |
| 571 | 571 | |
| 572 | +- (UIStatusBarStyle)preferredStatusBarStyle { | |
| 573 | + return UIStatusBarStyleDefault; | |
| 574 | +} | |
| 575 | + | |
| 572 | 576 | @end | ... | ... |
CNLiveScioLive/Pages/Live/Controller/VideoPlayBackViewController.m
| ... | ... | @@ -243,7 +243,7 @@ |
| 243 | 243 | relatedWebView.tag = 1000; |
| 244 | 244 | [backgroundView addSubview:relatedWebView]; |
| 245 | 245 | |
| 246 | - NSString* htmlHeader = [[NSString alloc] initWithFormat:@"<html><font style=\"font-size:20px;\"><strong>%@</strong></font><br><p>%@</p><p>来源:%@</p><body>",[_dictionary objectForKey:@"title"],[_dictionary objectForKey:@"createDate"], [_dictionary objectForKey:@"author"]]; | |
| 246 | + NSString* htmlHeader = [[NSString alloc] initWithFormat:@"<html><font style=\"font-size:20px;\"><strong>%@</strong></font><br><p>%@</p><p>%@:%@</p><body>",[_dictionary objectForKey:@"title"],[_dictionary objectForKey:@"createDate"], CustomStr(@"Source"), [_dictionary objectForKey:@"author"]]; | |
| 247 | 247 | NSString* htmlFooter = [[NSString alloc] initWithFormat:@"<div class=\"logo\" style=\"text-indent:2em\">%@</div></body></html>",[_dictionary objectForKey:@"desc"]]; |
| 248 | 248 | |
| 249 | 249 | NSString* strHtml = [[NSString alloc] initWithFormat:@"%@%@",htmlHeader,htmlFooter]; | ... | ... |
CNLiveScioLive/Pages/Login/Controller/CNLiveLoginViewController.m
CNLiveScioLive/Pages/My/通知公告/Controller/CNMyAnnouncementsViewController.m
| ... | ... | @@ -27,7 +27,7 @@ static NSString *myAnnouncementsTableViewCell = @"CNMyAnnouncementsTableViewCell |
| 27 | 27 | - (void)loadData{ |
| 28 | 28 | NSString *url = @"http://app.phonemovie.cnlive.com/gxb/api/cataloglatest"; |
| 29 | 29 | NSLog(@"%@",url); |
| 30 | - NSString *josnParameters = [NSString stringWithFormat:@"{\"plat\":\"i\",\"version\":\"5.0\",\"appid\":\"gxb\",\"categoryId\":\"wz/fbhgg/\",\"page\":\"%ld\",\"pageSize\":\"%@\",\"lang\":\"%@\"}",(long)self.pageNo,@"15", IS_CHINESE?@"cn":@"en"]; | |
| 30 | + NSString *josnParameters = [NSString stringWithFormat:@"{\"plat\":\"i\",\"version\":\"5.0\",\"appid\":\"gxb\",\"categoryId\":\"%@\",\"page\":\"%ld\",\"pageSize\":\"%@\",\"lang\":\"%@\"}",IS_CHINESE?@"wz/fbhgg/":@"wz/notice/",(long)self.pageNo,@"15", IS_CHINESE?@"cn":@"en"]; | |
| 31 | 31 | NSLog(@"%@",josnParameters); |
| 32 | 32 | NSDictionary *parameters = @{@"params":josnParameters}; |
| 33 | 33 | |
| ... | ... | @@ -250,4 +250,8 @@ static NSString *myAnnouncementsTableViewCell = @"CNMyAnnouncementsTableViewCell |
| 250 | 250 | return _data; |
| 251 | 251 | } |
| 252 | 252 | |
| 253 | +- (UIStatusBarStyle)preferredStatusBarStyle { | |
| 254 | + return UIStatusBarStyleLightContent; | |
| 255 | +} | |
| 256 | + | |
| 253 | 257 | @end | ... | ... |