cwa

CWActionSheet

模仿微信ActionSheet

Showing:

Popularity

Downloads/wk

0

GitHub Stars

46

Maintenance

Last Commit

3yrs ago

Contributors

1

Package

Dependencies

0

License

MIT

Categories

Readme

CWActionSheet

仿写微信项目,需要类似微信的ActionSheet,找到比较合适OC版本LCActionSheet,所以参照这个 完成了一个简单版本,还待完善。

目录 Contents

环境 Requirements

  • iOS 8.0+
  • Xcode 8.3+
  • Swift3.1

功能 Feature

  • 模仿微信ActionSheet
  • 支持横竖屏旋转

预览 Preview

ActionSheetDemo01 ActionSheetDemo02

使用 Usage

  • 导入方法:

    • 方法一(推荐使用):CocoaPodspod 'CWActionSheet'
  • 在相应位置导入头文件:import CWActionSheet

  • 调用下列任意方法即可:

    let clickedHandler = { (sheetView: ActionSheetView, index: Int) in
            print("点击\(index)")
    }
    let title = "Default CWActionSheet"
    let actionSheet = ActionSheetView(title: title,
                                      cancelButtonTitle: "Cancel",
                                      otherButtonTitles: ["Delete"],
                                      clickedHandler: clickedHandler)
    actionSheet.destructiveButtonIndex = 0
    actionSheet.show()

鸣谢 Thanks

许可 License

CWActionSheet is released under the MIT License.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100