Latest 0.1.1
Homepage https://github.com/MM-Lei/MMActionSheet
License MIT
Platforms ios 9.0, requires ARC
Authors

MMActionSheet

一个简单的actionSheet选择控件,仿微信底部sheet弹出框。 支持自定义颜色

使用

  1. 使用默认的颜色方案
        let items = ["拍照","相册"]
        let sheet =  MMActionSheet(title: "选择", items: items)
        sheet.handelChooseAction { (index) in
            print("选择了---(items[index])")
        }
        sheet.handelCancelAction {
            print("取消选择")
        }
  1. 自定义颜色

    let item1 = MMActionSheetItem(title: "查看", color: UIColor.black)
        let item2 = MMActionSheetItem(title: "删除", color: UIColor.red)
       let items = [item1,item2]
    
    let sheet =  MMActionSheet(title: "选择", items: items)
        sheet.handelChooseAction { (index) in
         print("选择了---(index)")
       }
        sheet.handelCancelAction {
        print("取消选择")
       }

Latest podspec

{
    "name": "MMActionSheet-Swift",
    "version": "0.1.1",
    "summary": "one style ActionSheet for iOS in Swift.",
    "description": "TODO: u4e00u4e2au7b80u5355u7684actionSheetu9009u62e9u63a7u4ef6uff0cone style ActionSheet for iOS in Swift..",
    "homepage": "https://github.com/MM-Lei/MMActionSheet",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "lh": "[email protected]"
    },
    "source": {
        "git": "https://github.com/MM-Lei/MMActionSheet.git",
        "tag": "0.1.1"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source_files": "MMActionSheet/MMActionSheet.swift",
    "requires_arc": true
}

Pin It on Pinterest

Share This