Don't Release custom typ UIButton by yourself
Don't Release custom typ UIButton by yourself
BluesChow 发表于4年前
Don't Release custom typ UIButton by yourself
  • 发表于 4年前
  • 阅读 5
  • 收藏 0
  • 点赞 0
  • 评论 0

Today I have found a code like this:

UIButton *syncBtn = [UIButton buttonWithType:UIButtonTypeCustom];
...
[syncBtn release];



and Then when I run the app, whatever operation I do,the syncBtn will disappear.I have looked for this bug about 30 mibutes,at last I found the programmer release the button the reference only 1.

Oh shit!







共有 人打赏支持
粉丝 6
博文 143
码字总数 29622
×
BluesChow
如果觉得我的文章对您有用,请随意打赏。您的支持将鼓励我继续创作!
* 金额(元)
¥1 ¥5 ¥10 ¥20 其他金额
打赏人
留言
* 支付类型
微信扫码支付
打赏金额:
已支付成功
打赏金额: