# ZKPluginSDK-iOS **Repository Path**: gzzlit-open/ZKPluginSDK-iOS ## Basic Information - **Project Name**: ZKPluginSDK-iOS - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-11-26 - **Last Updated**: 2024-11-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # ZKPluginSDK ## 示例 运行示例,从终端打开示例根目录,第一次安装运行: `pod install` 之后若有版本更新请运行: `pod update --no-repo-update` ## 要求 iOS9 Swift5 Objective-C ## 安装 ZKPluginSDK 可通过 [CocoaPods](https://cocoapods.org)安装使用。 终端运行添加智磊私有库: `pod repo add Spec https://gitee.com/zhi_lei/Spec.git ` 简单地添加以下代码到你的Podfile中,然后在你的Podfile目录打开终端运行: `pod install` 。 ```ruby use_frameworks! source 'https://gitee.com/zhi_lei/Spec.git' source 'https://github.com/CocoaPods/Specs.git' target 'ZKPluginSDK_Example' do pod 'ZKPluginSDK' end ``` ## 使用 在需要使用SDK的地方导入`ZKPluginManager` swift: ```swift import ZKPluginManager ``` objc: ```objc @import ZKPluginManager; ``` ### 显示页面 使用`ZKPluginManager`类`showPage`方法显示洗澡、饮水、吹风页面。 swift: ```swift @IBAction func bath(_ sender: Any) { ZKPluginManager.showPage(control:self, chanel: chanel, uid: uid, type: .洗澡) } @IBAction func drink(_ sender: Any) { ZKPluginManager.showPage(control:self, chanel: chanel, uid: uid, type: .饮水) } @IBAction func wind(_ sender: Any) { ZKPluginManager.showPage(control:self, chanel: chanel, uid: uid, type: .吹风) } ``` objc: ```objc [ZKPluginManager showPageWithControl:self chanel:@"" uid:@"" type:ZKPluginType洗澡]; ``` ## 许可 ZKPluginSDK is available under the MIT license. See the LICENSE file for more info.