UIViewController BlockSegue:类别它允许使用块来准备segue而不是丑陋的 prepareForSegue方法 源码
您是否厌倦了编写一个丑陋而庞大的-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.zip
(预估有个28文件)
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
暂无评论