入门会展示您的应用程序流程。这将帮助用户了解并快速了解您的应用程序。
要运行示例项目,首先克隆存储库,然后在 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'
入门在 MIT 许可证下可用。有关更多信息,请参阅 LICENSE 文件。