提交 e0f08066 编写于 作者: Y yixiang

消除SDK warning

上级 3e66eca0
......@@ -28,20 +28,20 @@
CGFloat closeWidth = kDoraemonSizeFrom750_Landscape(44);
CGFloat closeHeight = kDoraemonSizeFrom750_Landscape(44);
_closeBtn = [[UIButton alloc] initWithFrame:CGRectMake(viewSize.width - closeWidth - kDoraemonSizeFrom750_Landscape(16), kDoraemonSizeFrom750_Landscape(16), closeWidth, closeHeight)];
self.closeBtn = [[UIButton alloc] initWithFrame:CGRectMake(viewSize.width - closeWidth - kDoraemonSizeFrom750_Landscape(16), kDoraemonSizeFrom750_Landscape(16), closeWidth, closeHeight)];
[_closeBtn setBackgroundImage:[UIImage doraemon_imageNamed:@"doraemon_close"] forState:UIControlStateNormal];
[_closeBtn addTarget:self action:@selector(closeBtnClicked:) forControlEvents:UIControlEventTouchUpInside];
[self.view addSubview:_closeBtn];
[self.closeBtn setBackgroundImage:[UIImage doraemon_imageNamed:@"doraemon_close"] forState:UIControlStateNormal];
[self.closeBtn addTarget:self action:@selector(closeBtnClicked:) forControlEvents:UIControlEventTouchUpInside];
[self.view addSubview:self.closeBtn];
_infoLabel = [[UILabel alloc] initWithFrame:CGRectMake(kDoraemonSizeFrom750_Landscape(32), 0, viewSize.width - kDoraemonSizeFrom750_Landscape(32 + 16) - closeWidth , viewSize.height)];
_infoLabel.backgroundColor =[UIColor clearColor];
_infoLabel.textColor = [UIColor doraemon_black_1];
_infoLabel.font = [UIFont systemFontOfSize:kDoraemonSizeFrom750_Landscape(24)];
_infoLabel.numberOfLines = 0;
[self.view addSubview:_infoLabel];
self.infoLabel = [[UILabel alloc] initWithFrame:CGRectMake(kDoraemonSizeFrom750_Landscape(32), 0, viewSize.width - kDoraemonSizeFrom750_Landscape(32 + 16) - closeWidth , viewSize.height)];
self.infoLabel.backgroundColor =[UIColor clearColor];
self.infoLabel.textColor = [UIColor doraemon_black_1];
self.infoLabel.font = [UIFont systemFontOfSize:kDoraemonSizeFrom750_Landscape(24)];
self.infoLabel.numberOfLines = 0;
[self.view addSubview:self.infoLabel];
[(id)self.view.window setInfoLabel:_infoLabel];
[(id)self.view.window setInfoLabel:self.infoLabel];
});
}
......@@ -53,7 +53,7 @@
- (void)viewWillTransitionToSize:(CGSize)size withTransitionCoordinator:(id<UIViewControllerTransitionCoordinator>)coordinator {
[super viewWillTransitionToSize:size withTransitionCoordinator:coordinator];
dispatch_async(dispatch_get_main_queue(), ^{
self.view.window.frame = CGRectMake(kDoraemonSizeFrom750_Landscape(30), DoraemonScreenHeight - _infoLabel.frame.size.height - kDoraemonSizeFrom750_Landscape(30), size.height, size.width);
self.view.window.frame = CGRectMake(kDoraemonSizeFrom750_Landscape(30), DoraemonScreenHeight - self.infoLabel.frame.size.height - kDoraemonSizeFrom750_Landscape(30), size.height, size.width);
});
}
......
......@@ -57,7 +57,6 @@
}
- (void)showClose:(NSNotification *)notification{
NSDictionary *userInfo = notification.userInfo;
[_entryBtn setImage:[UIImage doraemon_imageNamed:@"doraemon_close"] forState:UIControlStateNormal];
[_entryBtn removeTarget:self action:@selector(showClose:) forControlEvents:UIControlEventTouchUpInside];
[_entryBtn addTarget:self action:@selector(closePluginClick:) forControlEvents:UIControlEventTouchUpInside];
......
......@@ -84,7 +84,7 @@ typedef NS_ENUM(NSUInteger, DoraemonManagerPluginType) {
- (void)install;
- (void)installWithCustomBlock:(void(^)())customBlock;
- (void)installWithCustomBlock:(void(^)(void))customBlock;
@property (nonatomic,strong) NSMutableArray *dataArray;
......
......@@ -77,7 +77,7 @@ typedef void (^DoraemonPerformanceBlock)(NSDictionary *);
}];
}
- (void)installWithCustomBlock:(void(^)())customBlock{
- (void)installWithCustomBlock:(void(^)(void))customBlock{
for (int i=0; i<_startPlugins.count; i++) {
NSString *pluginName = _startPlugins[i];
Class pluginClass = NSClassFromString(pluginName);
......
......@@ -86,7 +86,7 @@ static DoraemonNetworkInterceptor *instance = nil;
}
- (void)updateInterceptStatusForSessionConfiguration: (NSURLSessionConfiguration *)sessionConfiguration {
BOOL shouldIntercept = [self shouldIntercept];
//BOOL shouldIntercept = [self shouldIntercept];
if ([sessionConfiguration respondsToSelector:@selector(protocolClasses)]
&& [sessionConfiguration respondsToSelector:@selector(setProtocolClasses:)]) {
NSMutableArray * urlProtocolClasses = [NSMutableArray arrayWithArray: sessionConfiguration.protocolClasses];
......
......@@ -35,7 +35,7 @@
_anrTimeLabel.textColor = [UIColor doraemon_black_1];
_anrTimeLabel.font = [UIFont systemFontOfSize:kDoraemonSizeFrom750(16)];
_anrTimeLabel.text = [NSString stringWithFormat:@"卡顿耗时 : %@s",_anrInfo[@"duration"]];
_anrTimeLabel.sizeToFit;
[_anrTimeLabel sizeToFit];
_anrTimeLabel.frame = CGRectMake(20, _contentLabel.doraemon_bottom+20, _anrTimeLabel.doraemon_width, _anrTimeLabel.doraemon_height);
[self.view addSubview:_anrTimeLabel];
}
......
......@@ -132,14 +132,8 @@
}
+ (NSString *)pushAuthority{
if (IOS8) { //iOS8以上包含iOS8
if ([[UIApplication sharedApplication] currentUserNotificationSettings].types == UIRemoteNotificationTypeNone) {
return @"NO";
}
}else{ // ios7 一下
if ([[UIApplication sharedApplication] enabledRemoteNotificationTypes] == UIRemoteNotificationTypeNone) {
return @"NO";
}
if ([[UIApplication sharedApplication] currentUserNotificationSettings].types == UIRemoteNotificationTypeNone) {
return @"NO";
}
return @"YES";
}
......@@ -250,51 +244,47 @@
+ (NSString *)addressAuthority{
NSString *authority = @"";
//iOS9.0之前
if([[UIDevice currentDevice].systemVersion floatValue] <= __IPHONE_9_0)
{
ABAuthorizationStatus authorStatus = ABAddressBookGetAuthorizationStatus();
switch (authorStatus) {
case kABAuthorizationStatusAuthorized:
if (@available(iOS 9.0, *)) {//iOS9.0之后
CNAuthorizationStatus authStatus = [CNContactStore authorizationStatusForEntityType:CNEntityTypeContacts];
switch (authStatus) {
case CNAuthorizationStatusAuthorized:
authority = @"Authorized";
break;
case kABAuthorizationStatusDenied:
case CNAuthorizationStatusDenied:
{
authority = @"Denied";
}
break;
case kABAuthorizationStatusNotDetermined:
case CNAuthorizationStatusNotDetermined:
{
authority = @"NotDetermined";
}
break;
case kABAuthorizationStatusRestricted:
case CNAuthorizationStatusRestricted:
authority = @"Restricted";
break;
default:
break;
}
}
else//iOS9.0之后
{
CNAuthorizationStatus authStatus = [CNContactStore authorizationStatusForEntityType:CNEntityTypeContacts];
switch (authStatus) {
case CNAuthorizationStatusAuthorized:
}else{//iOS9.0之前
ABAuthorizationStatus authorStatus = ABAddressBookGetAuthorizationStatus();
switch (authorStatus) {
case kABAuthorizationStatusAuthorized:
authority = @"Authorized";
break;
case CNAuthorizationStatusDenied:
case kABAuthorizationStatusDenied:
{
authority = @"Denied";
}
break;
case CNAuthorizationStatusNotDetermined:
case kABAuthorizationStatusNotDetermined:
{
authority = @"NotDetermined";
}
break;
case CNAuthorizationStatusRestricted:
case kABAuthorizationStatusRestricted:
authority = @"Restricted";
break;
default:
break;
}
}
return authority;
......
......@@ -23,7 +23,9 @@
@end
@implementation DoraemonAppInfoViewController
@implementation DoraemonAppInfoViewController{
}
- (void)viewDidLoad {
[super viewDidLoad];
......@@ -34,8 +36,10 @@
- (void)viewDidDisappear:(BOOL)animated{
[super viewDidDisappear:animated];
_cellularData.cellularDataRestrictionDidUpdateNotifier = nil;
_cellularData = nil;
if (@available(iOS 9.0, *)){
_cellularData.cellularDataRestrictionDidUpdateNotifier = nil;
_cellularData = nil;
}
}
- (BOOL)needBigTitleView{
......@@ -81,21 +85,23 @@
NSString *locationAuthority = [DoraemonAppInfoUtil locationAuthority];
//获取网络权限
_cellularData = [[CTCellularData alloc]init];
__weak typeof(self) weakSelf = self;
_cellularData.cellularDataRestrictionDidUpdateNotifier = ^(CTCellularDataRestrictedState state) {
if (state == kCTCellularDataRestricted) {
weakSelf.authority = @"Restricted";
}else if(state == kCTCellularDataNotRestricted){
weakSelf.authority = @"NotRestricted";
}else{
weakSelf.authority = @"Unknown";
}
dispatch_async(dispatch_get_main_queue(), ^{
[weakSelf.tableView reloadData];
});
};
if (@available(iOS 9.0, *)) {
_cellularData = [[CTCellularData alloc]init];
__weak typeof(self) weakSelf = self;
_cellularData.cellularDataRestrictionDidUpdateNotifier = ^(CTCellularDataRestrictedState state) {
if (state == kCTCellularDataRestricted) {
weakSelf.authority = @"Restricted";
}else if(state == kCTCellularDataNotRestricted){
weakSelf.authority = @"NotRestricted";
}else{
weakSelf.authority = @"Unknown";
}
dispatch_async(dispatch_get_main_queue(), ^{
[weakSelf.tableView reloadData];
});
};
}
//获取push权限
NSString *pushAuthority = [DoraemonAppInfoUtil pushAuthority];
......
......@@ -13,7 +13,7 @@
#import "DoraemonCellSwitch.h"
#import "DoraemonDefine.h"
@interface DoraemonCPUViewController ()
@interface DoraemonCPUViewController ()<DoraemonSwitchViewDelegate>
@property (nonatomic, strong) DoraemonCellSwitch *switchView;
......
......@@ -49,7 +49,6 @@
cpuUsage = cpuUsage * 100;
}
// 0~100 对应 高度0~_oscillogramView.doraemon_height
NSTimeInterval time = [[NSDate date] timeIntervalSince1970];
[self.oscillogramView addHeightValue:cpuUsage*self.oscillogramView.doraemon_height/100. andTipValue:[NSString stringWithFormat:@"%.f",cpuUsage]];
}
......
......@@ -70,7 +70,7 @@
[[DoraemonCacheManager sharedInstance] saveCrashSwitch:on];
exit(0);
} cancleBlock:^{
 weakSelf.switchView.switchView.on = !on;
weakSelf.switchView.switchView.on = !on;
}];
}
......
......@@ -11,7 +11,7 @@
#import "DoraemonCellButton.h"
#import "DoraemonDefine.h"
@interface DoraemonDeleteLocalDataViewController ()
@interface DoraemonDeleteLocalDataViewController ()<DoraemonCellButtonDelegate>
@property (nonatomic, strong) DoraemonCellButton *cellBtn;
......
......@@ -12,7 +12,7 @@
#import "DoraemonCellSwitch.h"
#import "DoraemonDefine.h"
@interface DoraemonFPSViewController ()
@interface DoraemonFPSViewController ()<DoraemonSwitchViewDelegate>
@property (nonatomic, strong) DoraemonCellSwitch *switchView;
......
......@@ -35,7 +35,6 @@
}
- (void) initUI {
CGFloat buttonWidth = 44;
CGFloat space = 8;
self.previewImageView = [[UIImageView alloc] initWithFrame: CGRectMake(space, space, 100, 100)];
......
......@@ -14,7 +14,7 @@
self = [[DoraemonResponseImageModel alloc] init];
self.url = response.URL;
self.data = data;
int64_t byte = [DoraemonUrlUtil getResponseLength:response data:data];
int64_t byte = [DoraemonUrlUtil getResponseLength:(NSHTTPURLResponse *)response data:data];
self.size = [NSByteCountFormatter stringFromByteCount: byte countStyle: NSByteCountFormatterCountStyleBinary];
return self;
}
......
......@@ -61,7 +61,7 @@ static DoraemonLargeImageDetectionManager *instance = nil;
if (![response.MIMEType hasPrefix:@"image/"]) {
return;
}
if ([DoraemonUrlUtil getResponseLength:response data:data] < self.minimumDetectionSize) {
if ([DoraemonUrlUtil getResponseLength:(NSHTTPURLResponse *)response data:data] < self.minimumDetectionSize) {
return;
}
dispatch_semaphore_wait(semaphore, DISPATCH_TIME_FOREVER);
......
......@@ -15,7 +15,8 @@
@implementation UIImageView (DoraemonSDImage)
+ (void)load{
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wundeclared-selector"
Method originAddObserverMethod = class_getInstanceMethod(self, @selector(sd_setImageWithURL:placeholderImage:options:context:progress:completed:));
if (originAddObserverMethod) {
......@@ -27,6 +28,7 @@
[self doraemon_swizzleInstanceMethodWithOriginSel:@selector(sd_setImageWithURL:placeholderImage:options:progress:completed:) swizzledSel:@selector(doraemon_sd_setImageWithURL:placeholderImage:options:progress:completed:)];
}
//估计以后还会兼容其他版本啊。哭。
#pragma clang diagnostic pop
}
- (void)doraemon_sd_setImageWithURL:(nullable NSURL *)url
......
......@@ -12,7 +12,7 @@
#import "DoraemonCellSwitch.h"
#import "DoraemonDefine.h"
@interface DoraemonMemoryViewController ()
@interface DoraemonMemoryViewController ()<DoraemonSwitchViewDelegate>
@property (nonatomic, strong) DoraemonCellSwitch *switchView;
......
......@@ -12,7 +12,7 @@
#import "DoraemonNSLogListViewController.h"
#import "DoraemonDefine.h"
@interface DoraemonNSLogViewController ()
@interface DoraemonNSLogViewController ()<DoraemonSwitchViewDelegate,DoraemonCellButtonDelegate>
@property (nonatomic, strong) DoraemonCellSwitch *switchView;
@property (nonatomic, strong) DoraemonCellButton *cellBtn;
......@@ -51,7 +51,7 @@
[[DoraemonCacheManager sharedInstance] saveNSLogSwitch:on];
exit(0);
} cancleBlock:^{
 weakSelf.switchView.switchView.on = !on;
weakSelf.switchView.switchView.on = !on;
}];
}
......
......@@ -14,7 +14,7 @@ NS_ASSUME_NONNULL_BEGIN
- (void)renderCellWithData:(DoraemonNSLogModel *)model;
+ (CGFloat)cellHeightWith:(DoraemonNSLogModel *)model;
+ (CGFloat)cellHeightWith:(nullable DoraemonNSLogModel *)model;
@end
......
......@@ -67,7 +67,7 @@ typedef NS_ENUM(NSUInteger, NetFlowSelectState) {
[allHTTPHeaderString appendFormat:@"%@ : %@\r\n",key,value];
}
if (allHTTPHeaderString.length == 0) {
allHTTPHeaderString = @"NULL";
allHTTPHeaderString = [NSMutableString stringWithFormat:@"NULL"];
}
NSString *requestBody = self.httpModel.requestBody;
......@@ -95,14 +95,13 @@ typedef NS_ENUM(NSUInteger, NetFlowSelectState) {
NSString *respanseDataSize = [NSString stringWithFormat:DoraemonLocalizedString(@"数据大小 : %@"),[DoraemonUtil formatByte:[self.httpModel.downFlow floatValue]]];
NSString *mineType = [NSString stringWithFormat:@"mineType : %@",self.httpModel.mineType];
NSDictionary<NSString *, NSString *> *responseHeaderFields = (NSHTTPURLResponse *)self.httpModel.response;;
NSMutableString *responseHeaderString = [NSMutableString string];
for (NSString *key in allHTTPHeaderFields) {
NSString *value = allHTTPHeaderFields[key];
[responseHeaderString appendFormat:@"%@ : %@\r\n",key,value];
}
if (responseHeaderString.length == 0) {
responseHeaderString = @"NULL";
responseHeaderString = [NSMutableString stringWithFormat:@"NULL"];
}
NSString *responseBody = self.httpModel.responseBody;
if (!responseBody || requestBody.length == 0) {
......
......@@ -21,7 +21,7 @@
#import "DoraemonDefine.h"
@interface DoraemonNetFlowViewController ()
@interface DoraemonNetFlowViewController ()<DoraemonSwitchViewDelegate>
@property (nonatomic, strong) UITabBarController *tabBar;
@property (nonatomic, strong) DoraemonCellSwitch *switchView;
......
......@@ -32,7 +32,7 @@
httpModel.responseData = responseData;
httpModel.responseBody = [DoraemonUrlUtil convertJsonFromData:responseData];
httpModel.totalDuration = [NSString stringWithFormat:@"%fs",[[NSDate date] timeIntervalSince1970] - request.startTime.doubleValue];
httpModel.downFlow = [NSString stringWithFormat:@"%zi",[DoraemonUrlUtil getResponseLength:response data:responseData]];
httpModel.downFlow = [NSString stringWithFormat:@"%lli",[DoraemonUrlUtil getResponseLength:(NSHTTPURLResponse *)response data:responseData]];
return httpModel;
......
......@@ -19,6 +19,6 @@
+ (int64_t)getResponseLength:(NSHTTPURLResponse *)response data:(NSData *)responseData;
+ (NSString *)getHttpBodyFromRequest:(NSURLRequest *)request;
+ (NSData *)getHttpBodyFromRequest:(NSURLRequest *)request;
@end
......@@ -36,7 +36,7 @@
}
NSUInteger headersLength = [self getHeadersLength:headerFields];
NSData *httpBody = [self getHttpBodyFromRequest:request];
NSData *httpBody = [[self class] getHttpBodyFromRequest:request];
NSUInteger bodyLength = [httpBody length];
return headersLength + bodyLength;
}
......
......@@ -46,8 +46,8 @@
while (sqlite3_step(stmt) == SQLITE_ROW) {
const unsigned char *type_c = sqlite3_column_text(stmt, 0);
const unsigned char *tbl_name_c = sqlite3_column_text(stmt, 1);
NSString *type = [NSString stringWithUTF8String:type_c];
NSString *tbl_name = [NSString stringWithUTF8String:tbl_name_c];
NSString *type = [NSString stringWithUTF8String:(const char *)type_c];
NSString *tbl_name = [NSString stringWithUTF8String:(const char *)tbl_name_c];
if (type && [type isEqualToString:@"table"]) {
[tableNameArray addObject:tbl_name];
}
......
......@@ -7,11 +7,11 @@
#import "DoraemonSandboxViewController.h"
#import "DoraemonSandboxModel.h"
#import "DoraemonSandBoxCell.h"
#import "DoraemonSanboxDetailViewController.h"
#import "DoraemonNavBarItemModel.h"
#import "DoraemonAppInfoUtil.h"
#import "DoraemonDefine.h"
#import "DoraemonSandboxCell.h"
@interface DoraemonSandboxViewController ()<UITableViewDelegate,UITableViewDataSource>
......
......@@ -52,7 +52,7 @@
[[DoraemonCacheManager sharedInstance] saveSubThreadUICheckSwitch:on];
exit(0);
} cancleBlock:^{
 weakSelf.switchView.switchView.on = !on;
weakSelf.switchView.switchView.on = !on;
}];
}
......
......@@ -165,7 +165,7 @@ static CGFloat const kViewCheckSize = 62;
[showString appendString:tempString];
}
NSString *string = [NSString stringWithFormat:showString];
NSString *string = [NSString stringWithFormat:@"%@",showString];
// 行间距
NSMutableParagraphStyle *style = [NSMutableParagraphStyle new];
style.lineSpacing = kDoraemonSizeFrom750_Landscape(12);
......
......@@ -151,7 +151,7 @@
NSArray * dirArray = [fileManger contentsOfDirectoryAtPath:path error:nil];
NSString * subPath = nil;
for(NSString *str in dirArray) {
subPath  = [path stringByAppendingPathComponent:str];
subPath = [path stringByAppendingPathComponent:str];
[self getFileSizeWithPath:subPath];
}
}else{
......@@ -169,7 +169,7 @@
//删除某一路径下的所有文件
+ (void)clearFileWithPath:(NSString *)path{
NSFileManager *fm = [NSFileManager defaultManager];
NSArray *files = [[NSFileManager defaultManager] subpathsAtPath:path];
NSArray *files = [fm subpathsAtPath:path];
for (NSString *file in files) {
NSError *error;
NSString *filePath = [path stringByAppendingPathComponent:file];
......
......@@ -19,7 +19,6 @@
Protocol *proto = objc_getProtocol("CLLocationManagerDelegate");
unsigned int count;
struct objc_method_description *methods = protocol_copyMethodDescriptionList(proto, NO, YES, &count);
NSMutableArray *array = [NSMutableArray array];
for(unsigned i = 0; i < count; i++)
{
SEL sel = methods[i].name;
......
......@@ -12,7 +12,7 @@
#import "DoraemonCacheManager.h"
#import "DoraemonCocoaLumberjackListViewController.h"
@interface DoraemonCocoaLumberjackViewController ()
@interface DoraemonCocoaLumberjackViewController ()<DoraemonSwitchViewDelegate,DoraemonCellButtonDelegate>
@property (nonatomic, strong) DoraemonCellSwitch *switchView;
@property (nonatomic, strong) DoraemonCellButton *cellBtn;
......@@ -51,7 +51,7 @@
[[DoraemonCacheManager sharedInstance] saveLoggerSwitch:on];
exit(0);
} cancleBlock:^{
 weakSelf.switchView.switchView.on = !on;
weakSelf.switchView.switchView.on = !on;
}];
}
......
......@@ -14,7 +14,7 @@ NS_ASSUME_NONNULL_BEGIN
- (void)renderCellWithData:(DoraemonDDLogMessage *)model;
+ (CGFloat)cellHeightWith:(DoraemonDDLogMessage *)model;
+ (CGFloat)cellHeightWith:(nullable DoraemonDDLogMessage *)model;
@end
......
......@@ -60,7 +60,7 @@
}
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
DoraemonCocoaLumberjackListCell* model = [self.dataArray objectAtIndex:indexPath.row];
DoraemonDDLogMessage* model = [self.dataArray objectAtIndex:indexPath.row];
return [DoraemonCocoaLumberjackListCell cellHeightWith:model];
}
......@@ -132,7 +132,7 @@
NSArray *dataArray = self.origArray;
NSMutableArray *resultArray = [[NSMutableArray alloc] init];
for(DoraemonDDLogMessage *model in dataArray){
DDLogFlag *modelFlag = model.flag;
DDLogFlag modelFlag = model.flag;
if (modelFlag <= flag) {
[resultArray addObject:model];
}
......
......@@ -13,7 +13,7 @@
#import "DoraemonMethodUseTimeManager.h"
#import "DoraemonMethodUseTimeListViewController.h"
@interface DoraemonMethodUseTimeViewController ()
@interface DoraemonMethodUseTimeViewController ()<DoraemonSwitchViewDelegate,DoraemonCellButtonDelegate>
@property (nonatomic, strong) DoraemonCellSwitch *switchView;
@property (nonatomic, strong) DoraemonCellButton *cellBtn;
......@@ -51,7 +51,7 @@
[DoraemonMethodUseTimeManager sharedInstance].on = on;
exit(0);
} cancleBlock:^{
 weakSelf.switchView.switchView.on = !on;
weakSelf.switchView.switchView.on = !on;
}];
}
......
......@@ -10,7 +10,7 @@
#import "DoraemonDefine.h"
#import "DoraemonMethodUseTimeListCell.h"
@interface DoraemonMethodUseTimeListViewController ()
@interface DoraemonMethodUseTimeListViewController ()<UITableViewDelegate,UITableViewDataSource>
@property (nonatomic, copy) NSMutableArray *loadModelArray;
@property (nonatomic, strong) UITableView *tableView;
......
......@@ -9,7 +9,7 @@
#import <Foundation/Foundation.h>
#import <WeexSDK/WeexSDK.h>
NS_ASSUME_NONNULL_BEGIN
@interface DoraemonWeexLogModel : NSObject
@property (nonatomic, copy) NSString *content;
......@@ -18,4 +18,5 @@
@property (nonatomic, assign) WXLogFlag flag;
@end
NS_ASSUME_NONNULL_END
......@@ -9,12 +9,13 @@
#import <UIKit/UIKit.h>
#import "DoraemonWeexLogModel.h"
NS_ASSUME_NONNULL_BEGIN
@interface DoraemonWeexLogCell : UITableViewCell
- (void)renderCellWithData:(DoraemonWeexLogModel *)model;
+ (CGFloat)cellHeightWith:(DoraemonWeexLogModel *)model;
+ (CGFloat)cellHeightWith:(nullable DoraemonWeexLogModel *)model;
@end
NS_ASSUME_NONNULL_END
......@@ -64,7 +64,7 @@
}
- (void)sdWebImage{
NSURL *imageUrl = [NSURL URLWithString:self.picUrl];
//NSURL *imageUrl = [NSURL URLWithString:self.picUrl];
// [[SDWebImageManager sharedManager] loadImageWithURL:imageUrl options:SDWebImageRetryFailed progress:^(NSInteger receivedSize, NSInteger expectedSize, NSURL * _Nullable targetURL) {
// //
// } completed:^(UIImage * _Nullable image, NSData * _Nullable data, NSError * _Nullable error, SDImageCacheType cacheType, BOOL finished, NSURL * _Nullable imageURL) {
......
platform:ios,8.0
#use_frameworks!
inhibit_all_warnings!
#inhibit_all_warnings! #消除第三方仓库的警告
source 'git@github.com:CocoaPods/Specs.git'
post_install do |installer|
......@@ -13,6 +13,7 @@ end
target :'DoraemonKitDemo' do
pod 'DoraemonKit', :subspecs => ['Core','WithLogger','WithGPS','WithLoad','WithWeex'], :path => '../../'
#pod 'DoraemonKit', :subspecs => ['Core','WithLogger','WithGPS','WithLoad'], :path => '../../'
pod 'AFNetworking','2.6.3'
pod 'SDWebImage','3.7.6'
##pod 'SDWebImage', '5.0.6'
......
......@@ -111,6 +111,6 @@ SPEC CHECKSUMS:
WeexSDK: 5bd35be9c035c67c84d1ba15712360bb0d0ba6b5
WXDevtool: 833dd3e835df1f5f278fc8865c865d48196bfdab
PODFILE CHECKSUM: e9faca58dae8c6c0cc8affa40011ac98b192bf6a
PODFILE CHECKSUM: b19417e5832068e0d7ce2a165e19836badb382e7
COCOAPODS: 1.6.2
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册