Assigning retained object to unsafe property;object will be released after assignment

本文转载至 http://blog.csdn.net/cerastes/article/details/38047425

 

解决方法,将变量

[objc] view plaincopy
 
  1. @property  (assign) UILabel *titleView;  

改为
[objc] view plaincopy
 
  1. @property  (retain) UILabel *titleView;  
原文地址:https://www.cnblogs.com/Camier-myNiuer/p/4463390.html