Skip to content

A simple customizable alertView that displays text, input boxes and pictures

Notifications You must be signed in to change notification settings

shakesVan/MQAlertView

Repository files navigation

MQAlertView

A simple customizable alertView that displays text, input boxes and pictures AlterGif

Installation

using Carthage

Cartfile

github "xiaoyao250/MQAlertView"

input Framework Target -> Build Setting -> Framework Search Path add this:

$(SRCROOT)/Carthage/Build/iOS

Example

simple way to show alert view

show text

let al = MQAlertView(title: "title",
placeholder: "placeholder",
btnDoneTitle: "certain")
al.show(animated: true)

show image

let al = MQAlertImageView()
al.getImageView().image = UIImage(named: "1")
al.show(animated: false)

set properties

let al = MQAlertImageView()
al.getBtnCancel().setTitleColor(.gray, for: .normal)
al.getBtnCancel().setTitle("cancel", for: .normal)
al.show(animated: false)

Author

[email protected]

License

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

About

A simple customizable alertView that displays text, input boxes and pictures

Resources

Stars

Watchers

Forks

Packages

No packages published