HIVE SDK for iOS

HIVEResource.h
1 //
2 // HIVEResource.h
3 //
4 // Created by seongjunkim on 2016. 3. 10..
5 // Copyright © 2016년 Com2uS. All rights reserved.
6 //
7 
8 #import <Foundation/Foundation.h>
9 #import <UIKit/UIImage.h>
10 
11 // TODO: 왜 public 파일인가? 외부 공개 필요 여부 체크 필요.
19 @interface HIVEResource : NSObject
20 
21 // @param name bundle/Resources/nameWithExt 으로 읽기 시도된다.
22 + (UIImage*)getImageResource:(NSString*)nameWithExt;
23 
24 
25 + (NSBundle *)getBundle;
26 
33 + (NSData*)openRawResource:(NSString*)name;
34 
42 + (NSData*)openRawResource:(NSString*)filename defType:(NSString*)defType;
43 + (NSData*)openRawResource:(NSBundle*)bundle filename:(NSString*)filename defType:(NSString*)defType;
44 
51 + (BOOL)isExistFile:(NSString*)fileName;
52 
59 + (NSString*)readFileAsStream:(NSInputStream*)is;
60 
67 + (NSString*)readFile:(NSString*)sourceFilePath;
68 
69 
78 + (BOOL)writeFile:(NSString*)targetFilePath contents:(NSString*)contents;
79 
86 + (NSString*)readFileFromAssets:(NSString*)sourceFilePath;
87 
88 
95 + (NSDictionary*)readXmlToJSON:(NSInputStream*)is;
96 
97 
105 + (UIImage*)cachedImageFromURL:(NSURL*)url withGroup:(NSString*)groupName;
106 
114 + (void)cachingImageFromURL:(NSURL*)url withGroup:(NSString*)groupName;
115 
122 + (NSArray<NSURL*>*)cachedimageListWithGroup:(NSString*)groupName;
123 
131 + (BOOL)removeCachedImageWithURL:(NSURL*)url withGroup:(NSString*)groupName;
132 
140 + (BOOL)isCachedImage:(NSURL*)url withGroup:(NSString*)groupName;
141 
142 @end
143 
iOS 리소스 기능 모음 여기서 사용되는 path는 Asset(bundle)을 제외하면, applicationDocumentsDirectory ...
Definition: HIVEResource.h:19
Copyright © GAMEVIL COM2US PLATFORM Inc. All Right Reserved. 이용약관 개인정보 처리방침