爱意满满的作品展示区。
Elethom

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

  •  
  •   Elethom ·
    Elethom · May 16, 2014 · 3921 views
    This topic created in 4423 days ago, the information mentioned may be changed or developed.
    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
    6 replies    2014-05-20 10:06:30 +08:00
    newtonisaac
        1
    newtonisaac  
       May 16, 2014 via iPad
    兄弟,blockskit
    Elethom
        2
    Elethom  
    OP
       May 16, 2014
    @newtonisaac
    BlocksKit 的代码我有完整读过. 如果你有注意到这个 repo 的 commit history 就会发现这只是一个前后仅用了几个小时的 side project, 目的是研究 UIAlertView 和 UIActionSheet 在 iOS 7 下的 behaviours 同时造个小轮子学习使用 CocoaPods 发布 framework 的方法再顺便给其他开发者提供一个参考.
    newtonisaac
        3
    newtonisaac  
       May 17, 2014 via iPad
    @Elethom 顿首
    RIcter
        4
    RIcter  
       May 17, 2014 via iPad
    ....我还以为是alex.....
    shichimiya
        5
    shichimiya  
       May 17, 2014
    第6行和别的不一样,好难受好难受好难受
    Hysteria
        6
    Hysteria  
       May 20, 2014
    参数名太多了= - =,不好看啊不好看
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5656 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 44ms · UTC 02:53 · PVG 10:53 · LAX 19:53 · JFK 22:53
    ♥ Do have faith in what you're doing.