TCScreenShotTools 1.2.0

TCScreenShotTools 1.2.0

测试已测试
语言语言 SwiftSwift
许可 MIT
发布最新版本2017 年 5 月
SwiftSwift 版本3.0
SPM支持 SPM

维护者 tanchao.



  • 作者
  • itanchao

TCScreenShotTools

示例

要通过示例项目运行,首先从仓库克隆,然后在 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)
    }
}

yanshi

作者

itanchao, [email protected]

许可

TCScreenShotTools 在 MIT 许可下可用。有关更多信息,请参阅 LICENSE 文件。