Re: Problem using UIGestureRecognizer
Re: Problem using UIGestureRecognizer
- Subject: Re: Problem using UIGestureRecognizer
- From: Laurent Daudelin <email@hidden>
- Date: Mon, 06 Aug 2012 16:11:09 -0700
I found the problem after poking some more in Google. It is apparently a bug in UIKit. To fix it, I created a strong property in my controller connected to the UIGestureRecognizer and now, no more crash! So, the gesture recognizer, if nobody retains it, will be released without telling anyone, causing a random crash.
-Laurent.
--
Laurent Daudelin
AIM/iChat/Skype:LaurentDaudelin http://www.nemesys-soft.com/
Logiciels Nemesys Software email@hidden
On Aug 6, 2012, at 15:06, Quincey Morris <email@hidden> wrote:
> On Aug 6, 2012, at 14:54 , Laurent Daudelin <email@hidden> wrote:
>
>> Forgot to mention that I also tried to connect the gestureRecognizers outlet of the UIImageView to the gesture recognizer, making sure the one from the scrollview had been removed with same result….
>
> a. The backtrace you posted doesn't provide any evidence of gesture recognizers being involved with the crash. Looks more like a memory management problem related to network activity.
>
> b. The 'gestureRecognizers' property isn't an outlet. Connecting it to something in IB seems like a bad idea. (It doesn't seem completely impossible, though, that this is the actual source of your memory management problem.)
>
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden