NSBundle+CNLiveXFCamera.h
759 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
//
// NSBundle+CNLiveXFCamera.h
// CNLiveAVCamera
//
// Created by 梁星国 on 2018/12/8.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface NSBundle (CNLiveXFCamera)
/**
取得相机包bundle
@return 返回bundle
*/
+ (NSBundle *)xf_imageBundle;
/**
取得Bundle
@param cls 包中类名
@param package 包
@param bundleName bundle名
@return 返回bundle
*/
+ (NSBundle *)xf_imageBundleWithCls:(id)cls package:(NSString *)package bundleName:(NSString *)bundleName;
@end
NS_ASSUME_NONNULL_END
NS_ASSUME_NONNULL_BEGIN
@interface UIImage (CNLiveXFCamera)
/**
从bundle中取图片
@param imageName 图片名
@return 图片
*/
+ (UIImage *)imageFromBundle:(NSString *)imageName;
@end
NS_ASSUME_NONNULL_END