This commit is contained in:
lianxiang
2018-09-21 18:27:32 +08:00
parent f2729d343e
commit db1740e72b
573 changed files with 53631 additions and 3597 deletions
@@ -1,18 +1,20 @@
//
// GIGaFileManager.h
// GIGaUserFileHelper.h
// GIGA
//
// Created by lianxiang on 2018/9/18.
// Created by lianxiang on 2018/9/21.
// Copyright © 2018年 com.giga.ios. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface GIGaFileManager : NSObject
@interface GIGaUserFileHelper : NSObject
+(void)savaUserAvatorWith:(NSString *)userId image:(UIImage *)image;
+(UIImage *)getUserAvatorWith:(NSString *)userId;
+ (UIImage *) scaleFromImage: (UIImage *) image toSize: (CGSize) size;
+ (UIImage *)thumbnailWithImageWithoutScale:(UIImage *)image size:(CGSize)asize;
@end
@@ -1,16 +1,14 @@
//
// GIGaFileManager.m
// GIGaUserFileHelper.m
// GIGA
//
// Created by lianxiang on 2018/9/18.
// Created by lianxiang on 2018/9/21.
// Copyright © 2018 com.giga.ios. All rights reserved.
//
#import "GIGaFileManager.h"
@implementation GIGaFileManager
#import "GIGaUserFileHelper.h"
@implementation GIGaUserFileHelper
+(void)savaUserAvatorWith:(NSString *)userId image:(UIImage *)image{
if (!userId) {
GILog(@"userID nil !!!");
@@ -83,5 +81,4 @@
return newimage;
}
@end