pathway:有点像一个状态机,用于在 iOS 上浏览不同的视图控制器-源码

上传者: 42151373 | 上传时间: 2021-06-22 15:04:42 | 文件大小: 22KB | 文件类型: ZIP
通路 有点像一个状态机,用于在 iOS 上浏览不同的视图控制器。 有时,您有一组 ViewController,它们通过您的应用程序在各种工作流程中重复使用。 你真的不应该在你的 ViewControllers 中存储所有这些状态,因为这会变得混乱。 创建这个小库是为了将逻辑保留在其他东西中。 查看基类的Source文件夹中的内容,然后PersonStateMachine.swift示例应用程序中的PersonStateMachine.swift以了解其使用方式。 设置 为您的应用创建状态列表。 let firstnameState = NavigationState ( identifier : HomeViewController. self ) { return HomeViewController ( nibName : " HomeViewController

文件下载

资源详情

[{"title":"( 22 个子文件 22KB ) pathway:有点像一个状态机,用于在 iOS 上浏览不同的视图控制器-源码","children":[{"title":"pathway-master","children":[{"title":"LICENSE <span style='color:#111;'> 1.06KB </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 610B </span>","children":null,"spread":false},{"title":"Source","children":[{"title":"ViewControllerStateMachine.swift <span style='color:#111;'> 1.63KB </span>","children":null,"spread":false},{"title":"State.swift <span style='color:#111;'> 356B </span>","children":null,"spread":false},{"title":"StateMachineLogic.swift <span style='color:#111;'> 342B </span>","children":null,"spread":false},{"title":"NavigationState.swift <span style='color:#111;'> 520B </span>","children":null,"spread":false},{"title":"LinearStateMachineLogic.swift <span style='color:#111;'> 1.48KB </span>","children":null,"spread":false}],"spread":true},{"title":"README.md <span style='color:#111;'> 1.96KB </span>","children":null,"spread":false},{"title":"PathwayExampleApp","children":[{"title":"PathwayExampleApp.xcodeproj","children":[{"title":"project.xcworkspace","children":[{"title":"contents.xcworkspacedata <span style='color:#111;'> 162B </span>","children":null,"spread":false},{"title":"xcshareddata","children":[{"title":"PathwayExampleApp.xccheckout <span style='color:#111;'> 1.48KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"project.pbxproj <span style='color:#111;'> 15.53KB </span>","children":null,"spread":false}],"spread":true},{"title":"PathwayExampleApp","children":[{"title":"LastNameViewController.xib <span style='color:#111;'> 4.31KB </span>","children":null,"spread":false},{"title":"LastNameViewController.swift <span style='color:#111;'> 799B </span>","children":null,"spread":false},{"title":"Base.lproj","children":[{"title":"LaunchScreen.xib <span style='color:#111;'> 3.63KB </span>","children":null,"spread":false}],"spread":true},{"title":"EndViewController.xib <span style='color:#111;'> 5.53KB </span>","children":null,"spread":false},{"title":"AppDelegate.swift <span style='color:#111;'> 989B </span>","children":null,"spread":false},{"title":"HomeViewController.swift <span style='color:#111;'> 820B </span>","children":null,"spread":false},{"title":"Images.xcassets","children":[{"title":"AppIcon.appiconset","children":[{"title":"Contents.json <span style='color:#111;'> 585B </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"HomeViewController.xib <span style='color:#111;'> 4.30KB </span>","children":null,"spread":false},{"title":"EndViewController.swift <span style='color:#111;'> 831B </span>","children":null,"spread":false},{"title":"Info.plist <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false},{"title":"PersonStateMachine.swift <span style='color:#111;'> 1.36KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明