iOS一些实用的东西

iOS仿微信弹出框链式语法

2017-03-02  本文已影响12824人  zombieEngineer

仿写的微信弹出框

效果.gif

使用方法

LWWeChatActionSheet *sheet = [[LWWeChatActionSheet alloc] init];
    sheet.contentTitlesSet(@[@"分享到微信",@"QQ",@"分享到空间",@"打开相册",@"照相机"])
    .titleSet(@"选择下面的选项")
    .show()
    .actionSheetBlock = ^(NSInteger buttonIndex) {
        NSLog(@"点击了第%ld个",buttonIndex);
    };

传送门:github地址:https://github.com/zombieEnginner/LWWeChatActionSheet

上一篇 下一篇

猜你喜欢

热点阅读