Skip to content

对系统弹框的封装和自定义的一些弹框

License

Notifications You must be signed in to change notification settings

888NotFound/XQAlert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XQAlert

自定义一些弹框的封装

导入

pod 'XQAlert', :git => 'https://github.com/888NotFound/XQAlert'

使用

            XQAlertView.show("标题", message: "消息\n消息\n消息\n消息\n", rightBtnTitle: "右", leftBtnTitle: "左") {
                print("点击右")
            } leftCallback: {
                print("点击左")
            }

            XQAlertView.show("标题", message: "消息", btnTitle: "按钮") {
                print("点击")
            }

            XQCustomSheetAlertView.sheet(withTitle: "标题", message: "消息", dataArr: ["0", "1", "2"], cancelText: "取消") { index in
                print("点击: \(index)")
            } cancelCallback: { index in
                print("点击取消")
            }

About

对系统弹框的封装和自定义的一些弹框

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published