【发布时间】:2015-05-05 18:06:53
【问题描述】:
如果 UIImageView 是我的班级,我会通过这样做来解决这个问题:
class myUIImageView{
var image : UIImage? {
didSet {
if self.image != nil{
//do my stuff
}
}
}
//Other fields and functions
}
我想要的是被通知(Observer Like)
【问题讨论】:
-
尝试使用 Post Notification 会解决你的问题
-
@MalavSoni 你能详细说明一下吗?什么是发布通知以及如何使用它?
标签: ios swift uiimageview uikit