[英]Crash if end of scrollView reached iOS7 Only
I have a table view, the selected cell pushes a UIView
with scrollView
. 我有一个表视图,所选单元格使用scrollView
推送UIView
。
On iOS7 only , if I reach the end of the scrollView
and go back to tableView
I get a crash with no error in the debugger. 仅在iOS7上,如果我到达scrollView
并返回到tableView
我会在调试器中发生崩溃而没有错误。
If I don't scroll right to the end , all works fine. 如果我不滚动到最后 ,一切正常。 I can scroll to almost just a pixel to the end of the scroll view with no crash, as soon as I hit the end of the scrollView
, the crash happens 我可以滚动到几乎只有一个像素到滚动视图的末尾没有崩溃,只要我点击scrollView
,崩溃发生
If I change the size of the scroll view, no matter what size is, as soon as its scrolled to the END I get the crash. 如果我更改滚动视图的大小,无论大小是多少,只要滚动到END,我就会崩溃。
This problem is not evident before iOS 7 在iOS 7之前,这个问题并不明显
error message: return UIApplicationMain(argc, argv, nil, NSStringFromClass([ICAppDelegate class]));
错误消息: return UIApplicationMain(argc, argv, nil, NSStringFromClass([ICAppDelegate class]));
Thread 1: EXC_BAD_ACCESS (code=2, address = 0xc)
在返回tableView
之前,您可以尝试the scrollView datasource
设置为nil
并delegate
为nil
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.