Commit a229d88e authored by Han Ruisong's avatar Han Ruisong
Browse files

升级到 4.2.3

1.修复了iOS13下,播放本地视频可能会导致内存异常上涨的bug。
2.iOS13适配。
parent 6653ad94
This diff is collapsed.
......@@ -339,6 +339,8 @@
self.tableView = [[UITableView alloc]init];
self.tableView.delegate = self;
self.tableView.dataSource = self;
self.tableView.backgroundColor = self.view.backgroundColor;
self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
[self.view addSubview:self.tableView];
[self.tableView mas_makeConstraints:^(MASConstraintMaker *make) {
......
......@@ -13,6 +13,7 @@
#import "DWUPnPRenderer.h"
#import <AVKit/AVKit.h>
#import <MediaPlayer/MediaPlayer.h>
#import <CoreLocation/CoreLocation.h>
@interface DWScreeningListViewController () <UITableViewDelegate,UITableViewDataSource,DWUPnPSearchDelegate>
......@@ -30,6 +31,8 @@
@property(nonatomic,strong)NSArray * listArray;
@property(nonatomic,strong)UITableView * tableView;
@property(nonatomic,strong)CLLocationManager * locationManager;
@end
@implementation DWScreeningListViewController
......@@ -43,6 +46,14 @@
self.upnpSearch = [[DWUPnPSearch alloc]init];
self.upnpSearch.delegate = self;
[self.upnpSearch start];
//iOS13需要获取定位权限才可以获取到SSID
if (@available(iOS 13.0, *)) {
if ([CLLocationManager authorizationStatus] == kCLAuthorizationStatusNotDetermined) {
self.locationManager = [[CLLocationManager alloc]init];
[self.locationManager requestWhenInUseAuthorization];
}
}
}
-(void)dealloc
......
......@@ -466,6 +466,8 @@ static NSString *const uploadsArray =@"uploadsArray";
self.tableView.delegate = self;
self.tableView.dataSource = self;
self.tableView.rowHeight = 87;
self.tableView.backgroundColor = self.view.backgroundColor;
self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
[self.view addSubview:self.tableView];
[_tableView mas_makeConstraints:^(MASConstraintMaker *make) {
......
......@@ -534,6 +534,8 @@ typedef enum : NSUInteger {
self.listTableView.delegate = self;
self.listTableView.dataSource = self;
self.listTableView.separatorStyle = UITableViewCellSeparatorStyleNone;
self.listTableView.backgroundColor = self.view.backgroundColor;
[self.view addSubview:self.listTableView];
[_listTableView mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.and.right.equalTo(@0);
......
......@@ -24,6 +24,8 @@
{
if (self == [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
self.backgroundColor = [UIColor whiteColor];
self.iconImageView = [[UIImageView alloc]init];
[self.contentView addSubview:self.iconImageView];
[_iconImageView mas_makeConstraints:^(MASConstraintMaker *make) {
......
......@@ -23,7 +23,8 @@
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
if (self == [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
self.backgroundColor = [UIColor whiteColor];
self.selectionStyle = UITableViewCellSelectionStyleNone;
self.iconImageView = [[UIImageView alloc]init];
......
......@@ -21,6 +21,8 @@
{
if (self == [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
self.backgroundColor = [UIColor whiteColor];
self.iconImageView = [[UIImageView alloc]initWithImage:[UIImage imageNamed:@"icon_screen_list.png"]];
[self.contentView addSubview:self.iconImageView];
[_iconImageView mas_makeConstraints:^(MASConstraintMaker *make) {
......
......@@ -14,6 +14,8 @@
self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
if (self) {
self.backgroundColor = [UIColor whiteColor];
// 视频缩略图
self.thumbnailView = [[UIImageView alloc]init];
[self.contentView addSubview:self.thumbnailView];
......
......@@ -8,6 +8,10 @@
<string>cc视频Demo</string>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIcons</key>
<dict/>
<key>CFBundleIcons~ipad</key>
<dict/>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
......@@ -33,6 +37,10 @@
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key>
<string>总是允许定位</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>使用期间允许定位</string>
<key>NSMicrophoneUsageDescription</key>
<string>请求访问麦克风</string>
<key>NSPhotoLibraryAddUsageDescription</key>
......
......@@ -26,5 +26,5 @@
#import "DWVodAdInfoModel.h"
//版本号
#define SDK_VERSION @"4.2.2"
#define SDK_VERSION @"4.2.3"
No preview for this file type
......@@ -93,7 +93,7 @@
<footer>
<div class="footer-copyright">
<p class="copyright">Copyright &copy; 2019 com.bokecc. All rights reserved. Updated: 2019-08-19</p>
<p class="copyright">Copyright &copy; 2019 com.bokecc. All rights reserved. Updated: 2019-07-02</p>
<p class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2.1 (build 1334)</a>.</p>
......
......@@ -93,7 +93,7 @@
<footer>
<div class="footer-copyright">
<p class="copyright">Copyright &copy; 2019 com.bokecc. All rights reserved. Updated: 2019-08-19</p>
<p class="copyright">Copyright &copy; 2019 com.bokecc. All rights reserved. Updated: 2019-07-02</p>
<p class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2.1 (build 1334)</a>.</p>
......
......@@ -125,7 +125,7 @@
<footer>
<div class="footer-copyright">
<p class="copyright">Copyright &copy; 2019 com.bokecc. All rights reserved. Updated: 2019-08-19</p>
<p class="copyright">Copyright &copy; 2019 com.bokecc. All rights reserved. Updated: 2019-07-02</p>
<p class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2.1 (build 1334)</a>.</p>
......
......@@ -93,7 +93,7 @@
<footer>
<div class="footer-copyright">
<p class="copyright">Copyright &copy; 2019 com.bokecc. All rights reserved. Updated: 2019-08-19</p>
<p class="copyright">Copyright &copy; 2019 com.bokecc. All rights reserved. Updated: 2019-07-02</p>
<p class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2.1 (build 1334)</a>.</p>
......
......@@ -93,7 +93,7 @@
<footer>
<div class="footer-copyright">
<p class="copyright">Copyright &copy; 2019 com.bokecc. All rights reserved. Updated: 2019-08-19</p>
<p class="copyright">Copyright &copy; 2019 com.bokecc. All rights reserved. Updated: 2019-07-02</p>
<p class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2.1 (build 1334)</a>.</p>
......
......@@ -93,7 +93,7 @@
<footer>
<div class="footer-copyright">
<p class="copyright">Copyright &copy; 2019 com.bokecc. All rights reserved. Updated: 2019-08-19</p>
<p class="copyright">Copyright &copy; 2019 com.bokecc. All rights reserved. Updated: 2019-07-02</p>
<p class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2.1 (build 1334)</a>.</p>
......
......@@ -93,7 +93,7 @@
<footer>
<div class="footer-copyright">
<p class="copyright">Copyright &copy; 2019 com.bokecc. All rights reserved. Updated: 2019-08-19</p>
<p class="copyright">Copyright &copy; 2019 com.bokecc. All rights reserved. Updated: 2019-07-02</p>
<p class="generator">Generated by <a href="http://appledoc.gentlebytes.com">appledoc 2.2.1 (build 1334)</a>.</p>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment