当使用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 …