UIViewController-BlockSegue:类别,它允许使用块来准备segue而不是丑陋的-prepareForSegue方法

时间:2024-04-16 00:21:26
【文件属性】:

文件名称:UIViewController-BlockSegue:类别,它允许使用块来准备segue而不是丑陋的-prepareForSegue方法

文件大小:26KB

文件格式:ZIP

更新时间:2024-04-16 00:21:26

Objective-C

您是否厌倦了编写一个丑陋而庞大的-prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender:方法? - ( void )prepareForSegue:(UIStoryboardSegue *)segue sender:( id )sender { if ([segue.identifier isEqualToString: @" segue1 " ]) { UIViewController *destination = segue. destinationViewController ; destination. view . backgroundColor = [UIColor redColor ]; } else if ([segue.identifier isEqual


【文件预览】:
UIViewController-BlockSegue-master
----SampleProjectTests()
--------SampleProjectTests-Info.plist(694B)
--------UIViewController+BlockSegueTest.m(3KB)
----Podfile.lock(149B)
----run_tests.sh(150B)
----.travis.yml(174B)
----Podfile(183B)
----LICENSE.md(1KB)
----README.md(4KB)
----UIViewController+BlockSegue.podspec(688B)
----.gitignore(264B)
----UIViewController+BlockSegue()
--------UIViewController+BlockSegue.h(1KB)
--------UIViewController+BlockSegue.m(4KB)
----SampleProject()
--------JMGAppDelegate.m(220B)
--------JMGAppDelegate.h(299B)
--------main.m(360B)
--------SampleProject-Info.plist(1KB)
--------SampleProject-Prefix.pch(344B)
--------Base.lproj()
--------Images.xcassets()
--------Model()
--------ViewControllers()
----SampleProject.xcodeproj()
--------xcshareddata()
--------project.pbxproj(24KB)

网友评论