Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UIScrollView bug? float foo = scrollview.zoomScale crashes the app

In method viewForZoomingInScrollView: of the delegate to my scrollview I do the seemingly innocent:

// scrollView is the parameter passed to this method

float foo = scrollView.zoomScale

Boom! Crash, hello gdb.

Is this a known bug? Should I submit it?

Cheers, Doug

like image 458
dugla Avatar asked Dec 29 '22 14:12

dugla


1 Answers

I get this and I thought it was because accessing zoomScale ends up calling viewForZoomingInScrollView, resulting in infinite recursion.

But I'm just speculating...

like image 81
jamesmoschou Avatar answered Jan 19 '23 00:01

jamesmoschou