LoginSignup
0

More than 1 year has passed since last update.

bottomLayoutGuide 非推奨の修正 ( Objective-C )

Last updated at Posted at 2021-05-09

Xcodeの bottomLayoutGuide の警告内容

Xcode ( Objective-C ) で下記の警告が発生しました。

スクリーンショット 2021-05-09 10.40.01.png

スクリーンショット 2021-05-09 10.39.23.png

( 警告メッセージ原文 )
'bottomLayoutGuide' is deprecated: first deprecated in iOS 11.0 - Use
view.safeAreaLayoutGuide.bottomAnchor instead of
bottomLayoutGuide.topAnchor

どうやら、
bottomLayoutGuide がiOS11.0で非推奨になったようです。
bottomLayoutGuide.topAnchor の代わりに
view.safeAreaLayoutGuide.bottomAnchor を使用してください
との事ですので、
下記の内容の通りに修正しました。

プログラム修正内容

( Objective-C )

        /* toItem:self.bottomLayoutGuide ( iOS 11.0 非推奨 ) */ 
        toItem:self.view.safeAreaLayoutGuide.bottomAnchor

以上

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
What you can do with signing up
0