文件名称:ios-segue-routing:允许使用显式方法准备 UIStoryboardSegues
文件大小:21KB
文件格式:ZIP
更新时间:2024-07-19 19:40:04
Objective-C
转接路由 UIViewController上的一个类别,它自动将您的-prepareForSegue:sender:调用路由到基于 segue 标识符的显式方法。 所以,而不是这个: - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { if ([segue.identifier isEqualToString:@"Show Settings"]) { // prepare for 'Show Settings' segue } else if ([segue.identifier isEqualToString:@"Show User Info"]) { // prepare for 'Show User Info' segue } els
【文件预览】:
ios-segue-routing-master
----.gitignore(20B)
----Sources()
--------UIViewController+KNMSegueRouting.m(6KB)
--------UIViewController+KNMSegueRouting.h(2KB)
--------KNMSegueRouting.h(195B)
----segue-routing.xcodeproj()
--------project.xcworkspace()
--------project.pbxproj(16KB)
--------xcuserdata()
----LICENSE(1KB)
----README.md(4KB)
----KNMSegueRouting.podspec(1KB)
----Tests()
--------KNMSegueRoutingTests.m(5KB)
--------KNMEnabledTestViewController.m(720B)
--------Info.plist(748B)
--------KNMTestViewController.h(532B)
--------KNMSegueCall.m(851B)
--------KNMTestViewController.m(1KB)
--------KNMEnabledTestViewController.h(600B)
--------KNMSegueCall.h(461B)