Latest 0.3.0
Homepage https://github.com/kaich/CKAlertView
License MIT
Platforms ios 8.0, requires ARC
Dependencies SnapKit
Frameworks UIKit
Authors

CI Status
Version
License
Platform

Usage

简单的使用方式,调用如下方式代码就可以显示你要的弹出框,具体用法参考Example

let alert = CKAlertView(title: "无法安装‘爱奇艺视频播放’,因苹果系统的限制您可以选择如下方法解决", message: ["Swift 是一门进行iOS新语言"], cancelButtonTitle: "确定", otherButtonTitles: nil){ index in
        self.lblMessage.text = "One button alert dismissed"
    }
    alert.show()

Alert Style

提供多种样式的弹出框,尽量少的代码提供给扩展弹出框样式。目前支持样式如下:

CKAlertView
CKAlertView
CKAlertView
CKAlertView
CKAlertView
CKAlertView
CKAlertView

显示自定义弹出框:

CKAlertView
CKAlertView

Extension:

CKAlertView

Note

  • 监听值的类型请继承CKAlertView,参考CKCircularProgressAlertView

relase

  • 0.1.4 显示自定义的弹出框
  • 0.1.6 所有文字可以用NSAttributeString或者String.方便控制你的文字格式。

Installation

CKAlertView is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "CKAlertView"

If you want to include ‘Extension’ module, please install as below.

pod "CKAlertView", :subspecs => ['Core','Extension']

Author

kaich, [email protected]

License

CKAlertView is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "CKAlertView",
    "version": "0.3.0",
    "summary": "Custom Mutil Styles Alert View.",
    "description": "Use simple code to display defined multi styles alert view.You can use String or NSAttributeString for text. Detail refer to README.md.",
    "homepage": "https://github.com/kaich/CKAlertView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "kaich": "[email protected]"
    },
    "source": {
        "git": "https://github.com/kaich/CKAlertView.git",
        "tag": "0.3.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "default_subspecs": "Core",
    "frameworks": "UIKit",
    "dependencies": {
        "SnapKit": [
            "~> 3.0.2"
        ]
    },
    "requires_arc": true,
    "subspecs": [
        {
            "name": "Core",
            "source_files": "CKAlertView/Classes/Core/**/*",
            "resource_bundles": {
                "CKAlertView": [
                    "CKAlertView/Assets/*.png"
                ]
            }
        },
        {
            "name": "Extension",
            "dependencies": {
                "CKAlertView/Core": [],
                "DACircularProgress": []
            },
            "source_files": "CKAlertView/Classes/Extension/*"
        }
    ]
}

Pin It on Pinterest

Share This