Ios 访问Xcode中的本地html文本框或下拉列表时出现布局约束错误

Ios 访问Xcode中的本地html文本框或下拉列表时出现布局约束错误,ios,xcode,Ios,Xcode,在XCode版本11.2(11B52)中使用Objective-C,在iOS版本12.4.3中使用macOS Catalina Beta 10.15.2。 在Xcode中访问本地html元素时出现不同的布局约束错误。 谢谢你的帮助 尝试了以下方法: view.userInteractionEnabled=是 view.translatesAutoResizezingMaskintoConstraints=否 NSString *filePath=[[NSBundle mainBundle]

在XCode版本11.2(11B52)中使用Objective-C,在iOS版本12.4.3中使用macOS Catalina Beta 10.15.2。 在Xcode中访问本地html元素时出现不同的布局约束错误。 谢谢你的帮助

尝试了以下方法:

view.userInteractionEnabled=是 view.translatesAutoResizezingMaskintoConstraints=否

   NSString *filePath=[[NSBundle mainBundle]pathForResource:@"search" ofType:@"html" inDirectory:nil];
   NSLog(@"%@",filePath);
   self.webView.translatesAutoresizingMaskIntoConstraints = NO;
   self.webView.userInteractionEnabled=YES;  
   [self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL fileURLWithPath:filePath]]];
预期:在手机上的Xcode中运行时,在html中选择下拉框或搜索文本框,我会得到所有布局和约束错误。
实际:它必须获取所选项目并转到下一屏幕打印结果