美文网首页
UIWebView审核被拒

UIWebView审核被拒

作者: GitArtOS | 来源:发表于2020-12-07 17:04 被阅读0次
    截屏2020-12-07 下午5.02.54.png

    1. 查找全局的UIWebView

    一下子看到重点提示是UIWebView被弃用了,我们使用了被弃用的API,那么问题来了,怎么彻底清除项目中的UIWebView的代码呢?这就是接下来我要分享给大家的内容。

    进入你的项目根目录,输入下面命令 grep -r UIWebView .

    
     xxxxx git:(master) ✗ cd /Users/gitartos/Desktop/xxxxxPro/xxxxx
    ➜  xxxxx git:(master) ✗ grep -r UIWebView .
    Binary file ./RevealServer.framework/RevealServer matches
    ./xxxxx/BannerDetailViewController.m://<UIWebViewDelegate,UIAlertViewDelegate>
    ./xxxxx/BannerDetailViewController.m://UIWebViewDelegate
    ./xxxxx/BannerDetailViewController.m:/*- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType {
    ./xxxxx/BannerDetailViewController.m:#pragma mark - UIWebViewDelegate
    ./xxxxx/BannerDetailViewController.m:- (void)webViewDidStartLoad:(UIWebView *)webView {
    ./xxxxx/BannerDetailViewController.m:- (void)webViewDidFinishLoad:(UIWebView *)webView {
    ./xxxxx/BannerDetailViewController.m:- (void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error {
    ./xxxxx/商城/Classify_mall(分类)/View/HeadlineDetailCell.m:#pragma mark - UIWebViewDelegate  20201207
    ./xxxxx/商城/Classify_mall(分类)/View/HeadlineDetailCell.m://- (void)webViewDidFinishLoad:(UIWebView *)webView {
    ./xxxxx/商城/Classify_mall(分类)/View/MallDetailDescribeCell.m:#pragma mark - UIWebViewDelegate
    ./xxxxx/商城/Classify_mall(分类)/View/MallDetailDescribeCell.m:/*- (void)webViewDidFinishLoad:(UIWebView *)webView {
    ./xxxxx/商城/Classify_mall(分类)/ViewController/MallProductDetailViewController.m://        _webView = [[UIWebView alloc]initWithFrame:CGRectMake(5.f, 0.f, KscreenWidth-15, 1)];
    ./xxxxx/HeadlineDetailViewController.m://@property (nonatomic,strong)UIWebView *webView;
    ./xxxxx/HeadlineDetailViewController.m://- (void)webViewDidFinishLoad:(UIWebVie *)webView {
    ./xxxxx/ContractViewController.m://- (void)webViewDidFinishLoad:(UIWebView *)webView{
    ./xxxxx/ContractViewController.m://#pragma mark - UIWebViewDelegate
    ./xxxxx/ContractViewController.m://- (void)webViewDidStartLoad:(UIWebView *)webView {
    ./xxxxx/ContractViewController.m://- (void)webViewDidFinishLoad:(UIWebView *)webView {
    ./xxxxx/ContractViewController.m://- (void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error {
    ./xxxxx/2.0代码/Home(首页)/View/CheckInProtocolView.m:/*- (void)webViewDidFinishLoad:(UIWebView*)webView {
    ./xxxxx/2.0代码/Home(首页)/View/CheckInProtocolView.m:- (void)webView:(UIWebVie *)webView didFailLoadWithError:(NSError *)error {
    ./xxxxx/2.0代码/Home(首页)/ViewController/PartnerViewController.m:    self.webView = [[UIWebView alloc] initWithFrame:CGRectMake(0, kTopHeight, KscreenWidth, IS_IPHONE_X?KscreenHeight-kTopHeight-kTabBarHeight:KscreenHeight-kTopHeight-50)];
    ./xxxxx/2.0代码/Home(首页)/ViewController/PartnerViewController.m:#pragma mark - UIWebViewDelegate
    ./xxxxx/2.0代码/Home(首页)/ViewController/PartnerViewController.m:- (void)webViewDidStartLoad:(UIWebView *)webView {
    ./xxxxx/2.0代码/Home(首页)/ViewController/PartnerViewController.m:- (void)webViewDidFinishLoad:(UIWebView *)webView {
    ./xxxxx/2.0代码/Home(首页)/ViewController/PartnerViewController.m:- (void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error {
    ./xxxxx/2.0代码/Home(首页)/ViewController/BecomePartnerViewController.m://- (void)webViewDidFinishLoad:(UIWebView *)webView{
    ./xxxxx/2.0代码/Home(首页)/ViewController/BecomePartnerViewController.m:#pragma mark - UIWebViewDelegate
    ./xxxxx/2.0代码/Home(首页)/ViewController/BecomePartnerViewController.m:- (void)webViewDidStartLoad:(UIWebView *)webView {
    ./xxxxx/2.0代码/Home(首页)/ViewController/BecomePartnerViewController.m:- (void)webViewDidFinishLoad:(UIWebView *)webView {
    ./xxxxx/2.0代码/Home(首页)/ViewController/BecomePartnerViewController.m:- (void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error {
    ./xxxxx/2.0代码/17HeadLines/Controller/ZSSRichTextEditor.m:        //On the oldUIWebView delegate it returned false Bool here
    ./xxxxx/2.0代码/ViewController/ServeDetailViewController.m://@property (nonatomic,strong)UIWebView *webView;
    ./xxxxx/2.0代码/ViewController/CaseDetailViewController.m:/*-(void)webViewDidFinishLoad:(UIWebView *)webView {
    ./xxxxx/2.0代码/ViewController/TextImageEditorViewController.m:- (void)webViewDidFinishLoad:(UIWebView *)webView
    Binary file ./xxxxx.xcworkspace/xcuserdata/zhanghang.xcuserdatad/UserInterfaceState.xcuserstate matches
    Binary file ./xxxxx.xcworkspace/xcuserdata/gitartos.xcuserdatad/UserInterfaceState.xcuserstate matches
    Binary file ./xxxxx.xcworkspace/xcuserdata/kxq.xcuserdatad/UserInterfaceState.xcuserstate matches
    ./Common/YQOpenFile/YQOpenRemoteFileViewController.m://- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType
    ./Common/YQOpenFile/YQOpenRemoteFileViewController.m:- (void)webViewDidFinishLoad:(UIWebView *)webView
    ./Common/YQOpenFile/YQOpenRemoteFileViewController.m://- (void)webViewDidStartLoad:(UIWebView *)webView {
    ./Common/YQOpenFile/YQOpenRemoteFileViewController.m://- (void)webView:(UIWebView *)webView didFailLoadWithError:(NSError *)error
    ./Pods/TTTAttributedLabel/TTTAttributedLabel/TTTAttributedLabel.h: to emulate the link detection behaviour of UIWebView.
     
    

    逐个修改就行了

    相关文章

      网友评论

          本文标题:UIWebView审核被拒

          本文链接:https://www.haomeiwen.com/subject/mvstgktx.html