Skip to main content

既存アプリのios14とXcode12対応

毎年恒例ですがio14対応しました
以下、内容


・UITextFieldの背景色が透明になる
UITextFieldのバックグラウンドカラーをデフォルトにしてたら透過になってた
今まで通り白がよかったので明示的に白を指定した

 

・サポートOSバージョンの変更
以下を見ながら対応
TargetsのDeployment Infoは場所が分かりにくいので注意
https://qiita.com/orimomo/items/299712d5b67214143613

 

・警告1
以下の警告が出るが無害とのこと
The iOS Simulator deployment target ‘IPHONEOS_DEPLOYMENT_TARGET’ is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99.
https://qiita.com/temoki/items/46ad22940e819a132435

 

・警告2
以下の警告が出ました
‘UILaunchImages’ has been deprecated, use launch storyboards instead.
調べたところ
Build Settings
Asset Catalog Launch Images Set Name
から削除すればよいとのこと
https://apprili.com/2020/04/01/launch-images-are-deprecated-in-ios-13-0-use-a-launch-storyboard-or-xib-instead/

 

・deprecatedメソッド
UIApplication.shared.isNetworkActivityIndicatorVisible
がios13でdeprecatedとのこと
代案なさそうなので消しました
https://stackoverflow.com/questions/56691817/setting-network-activity-indicator-is-deprecated

 

これで全部の予定
後は審査が通ることを祈るのみ

関連記事:

Pocket