方法1、
weak var weakSelf =self
self.block = {() -> () in
if let strongSelf = weakSelf {
//使用self
}
}
方法2、
self.block = {[weak self]() -> () in
//使用self?
}
方法1、
weak var weakSelf =self
self.block = {() -> () in
if let strongSelf = weakSelf {
//使用self
}
}
方法2、
self.block = {[weak self]() -> () in
//使用self?
}