入门 0.1.6

入门 0.1.6

测试已经测试
语言语言 swiftSwift
许可证 MIT
发布上次发布2016年11月
SwiftSwift版本3.0
SPM支持SPM

Ranjith 维护。



入门 0.1.6

onboarding

描述

入门会展示您的应用程序流程。这将帮助用户了解并快速了解您的应用程序。

示例

要运行示例项目,首先克隆存储库,然后在 Example 目录中运行 pod install

用法

UIFOnboardingViewController 作为普通控制器工作,只需实例化并展示即可。

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
if(self.window == nil) {
self.window = UIWindow()
}
var dictionary = [Dictionary<String,String>]()
dictionary = [["imageName":"illustrationScreen-1",
"title":"SIMPLE ABROAD CALLS",
"subTitle":"Wonep converts international calls to local calls"],
["imageName":"illustrationScreen-2",
"title":"FREE WONEP TO WONEP",
"subTitle":"if the person you're calling also has Wonep the call will be entirely free"],
["imageName":"iIllustrationScreen-3",
"title":"NO HIDDEN CHARGES OR FEES",
"subTitle":"We have a very small charge for non-Wonep calls to mobiles or landlines"]]

let onboardingVC = UIFOnboardingViewController.init(dataSource:dictionary, hideStatusBar: true)
onboardingVC.delegate = self
let navigationController = UINavigationController.init(rootViewController: onboardingVC)
self.window?.backgroundColor = .white
self.window?.rootViewController = navigationController
self.window?.makeKeyAndVisible()
return true
}

要求

安装

入门通过 CocoaPods 提供。要安装它,只需将以下行添加到 Podfile 中

pod 'onboarding 0.1.5'

作者

[email protected]

许可证

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