Commit db2f3a41 authored by pete谢兆麟's avatar pete谢兆麟

暴露看一看通知

parent c9af43e1
...@@ -114,7 +114,7 @@ class YHPeopleSuccessView: UIView { ...@@ -114,7 +114,7 @@ class YHPeopleSuccessView: UIView {
button.setTitleColor( UIColor(hex:0xffffff), for: .normal) button.setTitleColor( UIColor(hex:0xffffff), for: .normal)
button.layer.cornerRadius = kCornerRadius3 button.layer.cornerRadius = kCornerRadius3
button.clipsToBounds = true button.clipsToBounds = true
button.addTarget(self, action: #selector(dismiss), for: .touchUpInside) button.addTarget(self, action: #selector(toLookPeople), for: .touchUpInside)
return button return button
}() }()
centerView.addSubview(bottomButton) centerView.addSubview(bottomButton)
...@@ -137,6 +137,11 @@ class YHPeopleSuccessView: UIView { ...@@ -137,6 +137,11 @@ class YHPeopleSuccessView: UIView {
@objc func dismiss() { @objc func dismiss() {
removeFromSuperview() removeFromSuperview()
} }
@objc func toLookPeople() {
NotificationCenter.default.post(name: YhConstant.YhNotification.didLookPeopleSuccessNotifiction, object: nil)
dismiss()
}
} }
extension YHPeopleSuccessView: UIGestureRecognizerDelegate { extension YHPeopleSuccessView: UIGestureRecognizerDelegate {
......
...@@ -259,6 +259,8 @@ extension YhConstant { ...@@ -259,6 +259,8 @@ extension YhConstant {
//接收到消息推送 //接收到消息推送
public static let didRevMsgNotifiction = Notification.Name(rawValue: "com.yinhe.didRevMsgNotifiction") public static let didRevMsgNotifiction = Notification.Name(rawValue: "com.yinhe.didRevMsgNotifiction")
public static let didLookPeopleSuccessNotifiction = Notification.Name(rawValue: "com.yinhe.look.people.success")
} }
} }
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