小编use*_*333的帖子

iOS 11 UIWebView下拉菜单完全打破了iPad - UIPopoverController

当使用HTML select元素时,在iPad上UIWebView呈现原生的UIPopoverController下拉列表(iPhone使用UIPickerView它可以正常工作).

在iOS11上,这似乎完全破碎了:

  • 单击外部下拉列表以在不选择选项的情况下关闭会导致弹出窗口关闭并立即重新显示,偶尔会为空
  • 当页面上有多个下拉列表时,下拉列表中的新列表包含上一个列表中的元素
  • 选择第二个下拉菜单时,首先重新打开
  • 偶尔下拉出现在左上角(可能是丢失了它的源视图)
  • 以上步骤偶尔会导致以下崩溃:

2017-09-23 09:43:13.190728 + 0100 Web [1779:86622] *由于未捕获的异常'NSInternalInconsistencyException'终止应用程序,原因:'UITableView dataSource未设置'*第一次抛出调用堆栈:(0 CoreFoundation 0x000000010d4a01cb exceptionPreprocess + 171 1 libobjc.A.dylib
0x000000010c8bbf41 objc_exception_throw + 48 2 CoreFoundation
0x000000010d4a5362 + [NSException raise:format:arguments:] + 98 3
Foundation 0x000000010c360089 - [NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 193 4
UIKit 0x000000010da742f5 - [的UITableView _createPreparedCellForGlobalRow:withIndexPath:willDisplay:] + 1756 5的UIKit 0x000000010da7451a - [UITableView的_createPreparedCellForRowAtIndexPath:willDisplay:] + 81 6的UIKit 0x000000010da82137 - [UITableView的_heightForRowAtIndexPath:] + 208 7
的UIKit 0x000000010dd2b939 - [UISectionRowData heightForRow:切入口:canGuess:] + 259 8 UIKit …

uiwebview ipad uipopovercontroller dropdown ios11

5
推荐指数
1
解决办法
1997
查看次数

标签 统计

dropdown ×1

ios11 ×1

ipad ×1

uipopovercontroller ×1

uiwebview ×1