Commit c638d01e authored by jz's avatar jz

update

parent d40a6af1
......@@ -118,14 +118,14 @@ public class GMCommonAlertView: GMView {
delegate?.didClickCommonAlert(buttonIndex: index, alertView: self)
}
@objc func show() {
@objc public func show() {
UIApplication.shared.keyWindow?.addSubview(self)
// self.snp.makeConstraints { (make) in
// make.edges.equalTo(UIEdgeInsets.zero)
// }
self.snp.makeConstraints { (make) in
make.edges.equalTo(UIEdgeInsets.zero)
}
}
@objc func dismiss() {
@objc public func dismiss() {
self.perform(#selector(removeFromSuperview))
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment