LoginSignup
2
1

More than 5 years have passed since last update.

【Xcode】スタートアップスクリーンでラベルを使う際の注意【InterfaceBuilder】

Posted at

ラウンチスクリーンをInterface Builderで作成していた時の話。解決までに無駄に時間を食ったのでメモ。

環境:Xcode 9.2 beta

fontがCustomで、textがPlainだとアプリでエラーが発生して起動できない。

xxxx1.png

↑の設定でビルドすると...

xxxx3.png

コケる。

fontがCustomの場合、textはAttributedにする。こうするとエラーは発生しない。

xxx2.png

ちなみに、LaunchScreen.storyboardのみの現象で、Main.storyboardだと発生しない。

(´・ω・`) なんだろう....

2
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
2
1