Latest 0.0.6
Homepage https://github.com/cwwise/CWActionSheet
License MIT
Platforms ios 8.0
Frameworks UIKit
Authors

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

目录 Contents

环境 Requirements

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

功能 Feature

  • [x] 模仿微信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.

Latest podspec

{
    "name": "CWActionSheet",
    "version": "0.0.6",
    "summary": "A simple, ornamental, but powerful action sheet!",
    "description": "A simple, ornamental, but powerful action sheet! like wechat.",
    "homepage": "https://github.com/cwwise/CWActionSheet",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "ios_chenwei": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/cwwise/CWActionSheet.git",
        "tag": "0.0.6"
    },
    "source_files": [
        "Sources",
        "*.{h,swift}"
    ],
    "public_header_files": "Sources/*.h",
    "frameworks": "UIKit",
    "pushed_with_swift_version": "4.0"
}

Pin It on Pinterest

Share This