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….

-Laurent.
-- 
Laurent Daudelin
AIM/iChat/Skype:LaurentDaudelin                                 
http://www.nemesys-soft.com/
Logiciels Nemesys Software                                      
[email protected]

On Aug 6, 2012, at 14:38, Laurent Daudelin <[email protected]> wrote:

> Hello.
> 
> I found a few examples of creating UIGestureRecognizer programmatically but 
> since they're in IB now, I thought why not using them there. So, I have an 
> Xcode 4.4 iOS 5.1 project using ARC with a UITableViewCell that contains a 
> UIScrollView, among other things, which scrollview contains an UIImageView. I 
> want the user to be able to zoom the image view, obviously. So, I dragged an 
> instance of UIGestureRecognizer into my controller's segue (scene?). I then 
> connected its action to an action method in my view controller. I then 
> dragged a connection from the scrollview to the gesture recognizer and 
> connected it to the gestureRecognizers of the scrollview. Everything seems to 
> be OK. But when I launch my app in the simulator, as soon as the view is to 
> appear, it crashes more or less randomly with:
> 
> * thread #1: tid = 0x1c03, 0x0124509b libobjc.A.dylib`objc_msgSend + 15, stop 
> reason = EXC_BAD_ACCESS (code=1, address=0x5f6e6511)
>    frame #0: 0x0124509b libobjc.A.dylib`objc_msgSend + 15
>    frame #1: 0x01448435 CoreFoundation`CFRelease + 117
>    frame #2: 0x01ebb968 CFNetwork`XConnectionEventQueue<XClientEvent, 
> XClientEventParams>::~XConnectionEventQueue() + 126
>    frame #3: 0x01f908e9 
> CFNetwork`URLConnectionClient::ClientConnectionEventQueue::processAllEventsAndConsumePayload(XConnectionEventInfo<XClientEvent,
>  XClientEventParams>*, long) + 1351
>    frame #4: 0x01eba298 CFNetwork`URLConnectionClient::processEvents() + 174
>    frame #5: 0x01f9016b CFNetwork`non-virtual thunk to 
> URLConnectionInstanceData::multiplexerClientPerform() + 21
>    frame #6: 0x01eba137 CFNetwork`MultiplexerSource::perform() + 259
>    frame #7: 0x0151097f 
> CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15
>    frame #8: 0x01473b73 CoreFoundation`__CFRunLoopDoSources0 + 243
>    frame #9: 0x01473454 CoreFoundation`__CFRunLoopRun + 1012
>    frame #10: 0x01472db4 CoreFoundation`CFRunLoopRunSpecific + 212
>    frame #11: 0x01472ccb CoreFoundation`CFRunLoopRunInMode + 123
>    frame #12: 0x02341879 GraphicsServices`GSEventRunModal + 207
>    frame #13: 0x0234193e GraphicsServices`GSEventRun + 114
>    frame #14: 0x003a2a9b UIKit`UIApplicationMain + 1175
>    frame #15: 0x0000282d Erodr`main + 141 at main.m:16
> 
> The gesture recognizers is configured with 1 tap, 1 touch, state enabled, 
> events canceled in View, delayed begin and delayed end.
> 
> What am I missing?
> 
> -Laurent.


_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to