LoginSignup
0
1

More than 5 years have passed since last update.

ログ "Setting the background color on UITableViewHeaderFooterView has been deprecated." を消す

Posted at

起こった現象

xib ファイルからインスタンス化したカスタムな UITableViewHeaderFooterView を表示すると下記のログが出力される。表示に影響はない。

Setting the background color on UITableViewHeaderFooterView has been deprecated. Please use contentView.backgroundColor instead.

解決方法

  • xib 上で UITableViewHeaderFooterView のサブクラスを作成したときに backgroundColor が White Color に設定されているので、 default に変更する
  • コード上での backgroundColor の設定をやめる

スクリーンショット 2017-05-17 20.34.20.png

参考

0
1
0

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
  3. You can use dark theme
What you can do with signing up
0
1