测试已测试 | ✗ |
语言语言 | SwiftSwift |
许可 | MIT |
发布最新版本 | 2017 年 5 月 |
SwiftSwift 版本 | 3.0 |
SPM支持 SPM | ✗ |
维护者 tanchao.
要通过示例项目运行,首先从仓库克隆,然后在 Example 目录下运行 pod install
TCScreenShotTools 可以通过 CocoaPods 使用。要安装它,只需在 Podfile 中添加以下行。
pod "TCScreenShotTools"
import UIKit
import TCScreenShotTools
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
TCScreenShotTools.shared.enable = true
TCScreenShotTools.shared.delegate = self
return true
}
}
extension AppDelegate: TCScreenShotToolsDelegate{
func screenShotTools(_tools: TCScreenShotTools, didClickShareBtn withShareType: TrickyShareType, withIcon: UIImage, in shareView: TrickyShareView) {
print(withShareType)
print(withIcon)
}
}
itanchao, [email protected]
TCScreenShotTools 在 MIT 许可下可用。有关更多信息,请参阅 LICENSE 文件。