码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2015-04-28 17:58:37      阅读:209      评论:0      收藏:0      [点我收藏+]

标签:

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

 

解决方法,将变量

 

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

改为

 

 

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

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

标签:

原文地址:http://www.cnblogs.com/Camier-myNiuer/p/4463390.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!