FHHSandBoxViewer 1.0.4

FHHSandBoxViewer 1.0.4

002and001维护。



  • 002and001

FHHSandBoxViewer

查看应用的SandBox及共享您选中的文档或文件。

FHHSandBoxViewer是一个轻量级组件,您可以使用它,如下面的gif所示。

gif

如何开始使用?

Swift使用

将FHHSandBoxViewer拖拽至您的项目中。然后在其中一个控制器中添加代码。

let title = FHHSandboxViewController.defaultNavTitle
let path = FHHSandboxViewController.defaultPath
let sandBoxViewerVC = FHHSandboxViewController.init(navTitle: title, path: path)
let nav = UINavigationController.init(rootViewController: sandBoxViewerVC)
nav.navigationBar.isHidden = true
nav.navigationBar.isTranslucent = true
self.present(nav, animated: true, completion: {
    sandBoxViewerVC.fhh_enterType = .present
})
Obj-C使用

将FHHSandBoxViewer拖拽至您的项目中,如果您之前的项目没有使用过Swift,需要在Xcode中配置ProductName-Bridging-Header.h文件。然后在一个控制器中添加代码。

NSString *defaultTitle = [FHHSandboxViewController defaultNavTitle];
NSString *defaultPath = [FHHSandboxViewController defaultPath];
FHHSandboxViewController *sandBoxViewerVC = [[FHHSandboxViewController alloc]
                                                initWithNavTitle:defaultTitle
                                                            path:defaultPath];
UINavigationController *nav = [[UINavigationController alloc]
                                  initWithRootViewController:sandBoxViewerVC];
[nav.navigationBar setHidden:YES];
[nav.navigationBar setTranslucent:YES];
[self presentViewController:nav animated:YES completion:^{
    sandBoxViewerVC.fhh_enterType = FHHEnterTypePresent;
}];

提示

如果您对现有的功能或UI不满意,您可以创建一个分叉(fork),然后进行一些您喜欢的更改。