ios - UIWebSelectSinglePicker 崩溃

标签 ios objective-c iphone uiwebview

我们收到了一些关于 UIWebSelectSinglePicker 崩溃的报告。我们猜测这是由于空数据源数组造成的。虽然这发生在 WebView 中。我们如何解决这个问题?更喜欢纯本地解决方案

编辑

只发生在同时运行 iOS7 和 iOS8 的 iPhone 上

1   CoreFoundation  __exceptionPreprocess + 127
2   libobjc.A.dylib objc_exception_throw + 36
3   CoreFoundation  -[__NSArrayM objectAtIndex:] + 228
4   UIKit   -[UIWebSelectSinglePicker pickerView:didSelectRow:inComponent:] + 56
5   UIKit   -[UIPickerView _sendSelectionChangedForComponent:notify:] + 90
6   UIKit   -[UIPickerTableView _scrollingFinished] + 152
7   UIKit   -[UIScrollView(UIScrollViewInternal) _stopScrollDecelerationNotify:] + 842
8   UIKit   -[UIScrollView(UIScrollViewInternal) _stopScrollingNotify:pin:tramplingDragFlags:] + 502
9   UIKit   -[UIScrollView(UIScrollViewInternal) _stopScrollingNotify:pin:] + 28
10  UIKit   -[UIScrollView _smoothScrollWithUpdateTime:] + 208
11  QuartzCore  CA::Display::DisplayLinkItem::dispatch() + 96
12  QuartzCore  CA::Display::DisplayLink::dispatch_items(unsigned long long, unsigned long long, unsigned long long) + 364
13  IOMobileFramebuffer IOMobileFramebufferVsyncNotifyFunc + 88
14  IOKit   IODispatchCalloutFromCFMessage + 254
15  CoreFoundation  __CFMachPortPerform + 130
16  CoreFoundation  __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 32
17  CoreFoundation  __CFRunLoopDoSource1 + 344
18  CoreFoundation  __CFRunLoopRun + 1606
19  CoreFoundation  CFRunLoopRunSpecific + 474
20  CoreFoundation  CFRunLoopRunInMode + 104
21  GraphicsServices    GSEventRunModal + 134
22  UIKit   UIApplicationMain + 1438
23  MYAPP   main (main.m:16)
24  libdyld.dylib   start + 0

最佳答案

我猜这与 another issue here on SO 有关

从 HTML 触发的 WebView 和系统控件存在问题。

关于ios - UIWebSelectSinglePicker 崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29601077/

相关文章:

ios - 如何在 swift 3 中创建像 Alamofire 这样的自定义闭包

iphone - iPhone应用程序读取文件时出现问题!

iphone - 处理 UINavigationBar 后面的触摸

ios - 为什么尽管使用了 `insertSubview:belowSubview:`,我的 View 仍然出现在另一个 View 之上?

ios - Xcode 10,以最小的努力实现代码覆盖

iphone - Restkit 不会将对象属性插入到请求 URL 路径的路径模式中

iphone - 如何在 Xcode + IB 中旋转 UI 按钮?

ios - 自动化 wkwebview 双击

ios - Azre iOS 客户端 SDK 中的乐观并发

ios - 无法在 Xcode 8.2.1 中调试项目