开发者

Do you need to release xib UI elements that aren't IBOutlets?

开发者 https://www.devze.com 2022-12-30 03:37 出处:网络
If I have a xib file with, say, a UIButton 开发者_开发知识库element, but I do not create an IBOutlet to it, will it be released automatically? Or do I need to create outlets to all UI elements, and re

If I have a xib file with, say, a UIButton 开发者_开发知识库element, but I do not create an IBOutlet to it, will it be released automatically? Or do I need to create outlets to all UI elements, and release them, even if I don't necessarily need the outlet for other purposes?


There is no need to create outlets to every UI element. All memory management should be handled automatically.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号