简体   繁体   中英

strong weak IBOutlet in iOS 6

The general recommendation was to use weak IBOutlet for the subviews. But now in iOS 6, views are no longer purged with memory warning, so is there any real practical difference between declaring an outlet as weak vs strong? I mean practical and not theoretical.

Apparently from a practical point of view, the only advantage of declaring your IBOutlets as weak comes when you somehow want to unload your view manually in your application.

I will mark this as "accepted" until someone provides a better answer.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM