2017-12-02 6 views
0

enter image description here enter image description hereiOSの11とObjective-Cの警告は4.0

アプリケーションは、今、私はObjective-Cののインポートされたファイルにエラーがあり -HEADER.Hの橋渡しを通じてSWIFT 4.0へのアップデート前には問題がなかったSWIFTにインポートスルー:SWIFT 4.0。 xCode 9.1。

私がここで尋ねる唯一の理由は、ほとんどの人と同様の質問です。他の回答はすべてSWIFTについてです。このエラーはOBJECTIVE-Cファイルにあります。それは重大ではないが、プログラムはうまくいくが、エラーを修正する方法(非表示にしない)。

#pragma mark Containment view controller deployment and transition 

// Containment Deploy method. Returns a block to be invoked at the 
// animation completion, or right after return in case of non-animated deployment. 
- (void (^)(void))_deployForViewController:(UIViewController*)controller inView:(UIView*)view 
{ 
    if (!controller || !view) 
     return ^(void){}; 

    CGRect frame = view.bounds; 

    UIView *controllerView = controller.view; 
    controllerView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight; 
    controllerView.frame = frame; 

    if ([controllerView isKindOfClass:[UIScrollView class]]) 
    { 
     BOOL adjust = controller.automaticallyAdjustsScrollViewInsets; 

     if (adjust) 
     { 
      [(id)controllerView setContentInset:UIEdgeInsetsMake(statusBarAdjustment(_contentView), 0, 0, 0)]; 
     } 
    } 

    [view addSubview:controllerView]; 

    void (^completionBlock)(void) = ^(void) 
    { 
     // nothing to do on completion at this stage 
    }; 

    return completionBlock; 
} 
+0

に廃止されましたautomaticallyAdjustsScrollViewInsetsのUIViewControllerの施設として

。私はSWIFTの規則によってこれをなぜフォーマットするのか分かりません。たぶん問題は認識されているのでしょうか?たぶん私は何とかこれを客観的なファイルとしてマークする必要がありますか? – Oleksandr

答えて

1

これはSwiftには何もありません。助けにはならない - エラーメッセージの状態、Xcodeの再起動の代わりのiOS 11. UIScrollViewののcontentInsetAdjustmentBehavior

関連する問題