项目作者: KenanAtmaca

项目描述 :
İOS Beautiful animated replaceable message box
高级语言: Swift
项目地址: git://github.com/KenanAtmaca/PopUpMessageBox.git
创建时间: 2016-11-06T10:50:35Z
项目社区:https://github.com/KenanAtmaca/PopUpMessageBox

开源协议:MIT License

下载


PopUpMessageBox

İOS Beautiful animated replaceable message box

alt tag

alt tag

  1. puBox = PopUpMessageBox(to: self.view, icon: UIImage(named:"ms.png")!, title: "Send Message")
  2. puBox.setup()
  3. puBox.addSendHandle(target: self, selector: #selector(sendMsg))
  4. puBox.addCancelHandle(target: self, selector: #selector(cancelMsg))

TextView text

  1. func sendMsg() {
  2. // Send Code
  3. print(puBox.msgText!)
  4. }

Cancel handle call remove function

  1. func cancelMsg() {
  2. // Cancel Code
  3. puBox.remove()
  4. }

Change Icon,title vs.

  1. PopUpMessageBox(to: self.view, icon: UIImage(named "ms.png")!, title: "Send", sendTitle: "Go", cancelTitle: "Cancel", sendColor: UIColor.black, cancelColor: UIColor.gray)