iOS升级14.1后,WKWebView无法自动吊起系统相机和相册

最近手机系统升级14.1后,发现项目中用到的web网页无法吊起系统相册,原本以为是权限问题;

后来经研究发现,是之前适配系统的时候再父类里写了个present方法;注释了这个方法就没问题了;

- (void)presentViewController:(UIViewController*)viewControllerToPresentanimated:(BOOL)flagcompletion:(void(^)(void))completion

{

    dispatch_async(dispatch_get_main_queue(), ^{        viewControllerToPresent.modalPresentationStyle = UIModalPresentationOverFullScreen;

        [super presentViewController:viewControllerToPresentanimated:flagcompletion:completion];

    });

}

具体什么原因,暂时还不清楚,如果有哪位大佬知道请告知,谢谢!

Web端的主要代码就下面这句: <input type="file" accept='image/*' >点击button</button>

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。