本文介绍了UIScrollView错误? float foo = scrollview.zoomScale使应用程序崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在方法viewForZoomingInScrollView中:我的scrollview的委托人,我看似无辜:
In method viewForZoomingInScrollView: of the delegate to my scrollview I do the seemingly innocent:
// scrollView是传递给此方法的参数
// scrollView is the parameter passed to this method
float foo = scrollView.zoomScale
float foo = scrollView.zoomScale
繁荣!崩溃,您好,gdb。
Boom! Crash, hello gdb.
这是一个已知的错误吗?我应该提交吗?
Is this a known bug? Should I submit it?
干杯,
Doug
Cheers,Doug
推荐答案
我明白了这一点,我认为这是因为访问zoomScale最终会调用viewForZoomingInScrollView,从而导致无限递归。
I get this and I thought it was because accessing zoomScale ends up calling viewForZoomingInScrollView, resulting in infinite recursion.
但是我只是在推测...
But I'm just speculating...
这篇关于UIScrollView错误? float foo = scrollview.zoomScale使应用程序崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!