简体   繁体   中英

Crash if end of scrollView reached iOS7 Only

I have a table view, the selected cell pushes a UIView with scrollView .

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.

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

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.

This problem is not evident before iOS 7

error message: return UIApplicationMain(argc, argv, nil, NSStringFromClass([ICAppDelegate class])); Thread 1: EXC_BAD_ACCESS (code=2, address = 0xc)

在返回tableView之前,您可以尝试the scrollView datasource设置为nildelegatenil

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM