PREventHandler: 使用 block 优雅地处理 UIAlertView 与 UIActionSheet 的 callbacks

2014-05-16 20:36:39 +08:00
 Elethom
On blog: http://blog.projectrhinestone.org/preventhandler/
On GitHub: https://github.com/Elethom/PREventHandler

欢迎 follow, star 或提交 PR. 请不要滥用 fork 功能或提交无意义的 issues, 谢谢!

示例:

https://gist.github.com/Elethom/93db831a555a7e3c66fb
3207 次点击
所在节点    分享创造
6 条回复
newtonisaac
2014-05-16 20:43:56 +08:00
兄弟,blockskit
Elethom
2014-05-16 20:52:49 +08:00
@newtonisaac
BlocksKit 的代码我有完整读过. 如果你有注意到这个 repo 的 commit history 就会发现这只是一个前后仅用了几个小时的 side project, 目的是研究 UIAlertView 和 UIActionSheet 在 iOS 7 下的 behaviours 同时造个小轮子学习使用 CocoaPods 发布 framework 的方法再顺便给其他开发者提供一个参考.
newtonisaac
2014-05-17 00:51:54 +08:00
@Elethom 顿首
RIcter
2014-05-17 09:56:05 +08:00
....我还以为是alex.....
shichimiya
2014-05-17 22:05:11 +08:00
第6行和别的不一样,好难受好难受好难受
Hysteria
2014-05-20 10:06:30 +08:00
参数名太多了= - =,不好看啊不好看

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/112895

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX