ios - Why gesture recognizer outlets are strong by default -


when create outlet control ctrl-dragging in interface builder suggests make outlet weak.

but if create outlet gesture recognizer suggestion make strong. curious reason behind of this, wrong making gesture recognizer outlets weak too?

ref: http://www.raywenderlich.com/forums/viewtopic.php?f=2&t=5126

from ios 5.0 not retain gesture recognizers when added view controller.

by making strong properties , connecting them gesture recognizers, can ensure stay alive otherwise app crash.

credit ray wenderlich team member hollance.


Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -