CYLDeallocBlockExecutor icon indicating copy to clipboard operation
CYLDeallocBlockExecutor copied to clipboard

Hello block,byebye dealloc!一行代码代替dealloc完成“self-manager”

Results 3 CYLDeallocBlockExecutor issues
Sort by recently updated
recently updated
newest added

![](http://ww1.sinaimg.cn/large/006tNc79ly1g3ua2dk2mcj312b0u0465.jpg) 用法 ```Objective-C vc.addObserver(view) vc.view.addsubview(view) view.deinit { view.removeObserver)( } ```

在ios11+里面,vc是先removefromsuperview再销毁控制器的。在ios11+里面,vc是先removefromsuperview再销毁控制器的。 ![](http://ww1.sinaimg.cn/large/006tNc79ly1g3ua3hjabgj31pe0rc44i.jpg) 其实不是引用的问题,是释放顺序的问题

你把identifier设计在内部,确把API identifier作为参数暴露在外边,你希望外界给你传什么值呢?传什么值才能移除对应的block?

Q-A