NIPRnHotReloadHelper Class Reference

Inherits from NSObject
Declared in NIPRnHotReloadHelper.h

+ fileNameListOfType:fromDirPath:

文件系统私有方法,获取bundle文件

+ (NSArray *)fileNameListOfType:(NSString *)type fromDirPath:(NSString *)dirPath

Parameters

type

文件类型

dirPath

文件路径

Return Value

NSArray

Declared In

NIPRnHotReloadHelper.h

+ copyFile:toPath:

拷贝文件到某个路径

+ (BOOL)copyFile:(NSString *)filePath toPath:(NSString *)toPath

Parameters

filePath

文件路径

toPath

目标路径

Return Value

BOOL

Declared In

NIPRnHotReloadHelper.h

+ copyFolderFrom:to:

拷贝文件夹至某个路径

+ (BOOL)copyFolderFrom:(NSString *)sourcePath to:(NSString *)destinationPath

Parameters

sourcePath

原文件夹路径

destinationPath

目标路径

Return Value

BOOL

Declared In

NIPRnHotReloadHelper.h

+ removeFileAtPath:

移除文件

+ (BOOL)removeFileAtPath:(NSString *)filePath

Parameters

filePath

目标文件路径

Return Value

BOOL

Declared In

NIPRnHotReloadHelper.h

+ removeFolder:

移除文件夹

+ (BOOL)removeFolder:(NSString *)folderPath

Parameters

folderPath

文件夹路径

Return Value

BOOL

Declared In

NIPRnHotReloadHelper.h

+ fileExistAtPath:

文件是否存在

+ (BOOL)fileExistAtPath:(NSString *)filePath

Parameters

filePath

文件路径

Return Value

BOOL

Declared In

NIPRnHotReloadHelper.h

+ folderExistAtPath:

目录是否存在

+ (BOOL)folderExistAtPath:(NSString *)folderPath

Parameters

folderPath

目录的路径

Return Value

BOOL

Declared In

NIPRnHotReloadHelper.h

– topViewControllerWithRootViewController:

获取当前VC

- (UIViewController *)topViewControllerWithRootViewController:(UIViewController *)rootViewController

Parameters

rootViewController

当前的rootViewController

Return Value

UIViewController

Declared In

NIPRnHotReloadHelper.h

+ registerIconFontsByNames:

注册字体文件

+ (void)registerIconFontsByNames:(NSArray *)names

Parameters

names

字体文件名数组

Declared In

NIPRnHotReloadHelper.h