提交 c0c2f319 编写于 作者: Y yixiangboy

解决Xcode product analyse的分析给出的提醒

上级 e2bfbd1a
......@@ -11,10 +11,10 @@ NS_ASSUME_NONNULL_BEGIN
@interface UIImage (Doraemon)
+ (UIImage *)doraemon_imageNamed:(NSString *)name;
+ (nullable UIImage *)doraemon_imageNamed:(NSString *)name;
//压缩图片尺寸 等比缩放 通过计算得到缩放系数
- (UIImage*)doraemon_scaledToSize:(CGSize)newSize;
- (nullable UIImage*)doraemon_scaledToSize:(CGSize)newSize;
/**
Create and return a 1x1 point size image with the given color.
......
......@@ -10,7 +10,7 @@
@class DoraemonManager;
@implementation UIImage (Doraemon)
+ (UIImage *)doraemon_imageNamed:(NSString *)name{
+ (nullable UIImage *)doraemon_imageNamed:(NSString *)name{
if(name &&
![name isEqualToString:@""]){
NSBundle *bundle = [NSBundle bundleForClass:NSClassFromString(@"DoraemonManager")];
......@@ -41,7 +41,7 @@
}
//压缩图片尺寸 等比缩放 通过计算得到缩放系数
- (UIImage*)doraemon_scaledToSize:(CGSize)newSize{
- (nullable UIImage*)doraemon_scaledToSize:(CGSize)newSize{
UIImage *sourceImage = self;
UIImage *newImage = nil;
CGSize imageSize = sourceImage.size;
......
......@@ -186,7 +186,7 @@ static NSString * const kDoraemonProtocolKey = @"doraemon_protocol_key";
// 去掉一些我们不关心的链接, 与UIWebView的兼容还是要好好考略一下
+ (BOOL)ignoreRequest:(NSURLRequest *)request{
NSString *pathExtension = [request.URL.absoluteString pathExtension];
NSArray *blackList = @[@"",@"",@""];
//NSArray *blackList = @[@"",@"",@""];
if (pathExtension.length > 0) {
return YES;
}
......
......@@ -15,7 +15,6 @@ NS_ASSUME_NONNULL_BEGIN
- (instancetype)initWithCapacity:(NSUInteger)numItems;
- (instancetype)initWithArray:(NSArray *)array;
- (instancetype)initWithCoder:(NSCoder *)aDecoder;
- (instancetype)initWithObjects:(const id [])objects count:(NSUInteger)cnt;
- (NSUInteger)count;
- (id)objectAtIndex:(NSUInteger)index;
......
......@@ -15,14 +15,12 @@ NS_ASSUME_NONNULL_BEGIN
- (instancetype)initWithCapacity:(NSUInteger)numItems;
- (instancetype)initWithDictionary:(NSDictionary *)dictionary;
- (instancetype)initWithCoder:(NSCoder *)aDecoder;
- (instancetype)initWithObjects:(const id [])objects forKeys:(const id<NSCopying> [])keys count:(NSUInteger)cnt;
- (NSUInteger)count;
- (id)objectForKey:(id)key;
- (id)objectForKeyedSubscript:(id)key;
- (NSEnumerator *)keyEnumerator;
- (void)setObject:(id)anObject forKey:(id<NSCopying>)aKey;
- (void)setObject:(id)anObject forKeyedSubscript:(id <NSCopying>)key;
- (NSArray *)allKeys;
- (NSArray *)allValues;
- (void)removeObjectForKey:(id)aKey;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册