NSBundle+CNLiveXFCamera.h 759 Bytes
//
//  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