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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top