9
8

More than 5 years have passed since last update.

Custom Keyboard の高さは viewWillAppear:animated で設定する

Last updated at Posted at 2016-01-22

永らく悩まされていたカスタムキーボードの高さが AutoLayout で設定できない問題がようやく解決した。

参考は下記の記事。
iOS 8 & iOS 9 Custom Keyboard - Custom Height

タイトルそのままなのだけど、 viewDidLoadconstraint を設定しても何故か高さが設定できない。
UIInputViewController の中の viewWillAppear:animatedconstraint を追加すると設定した通りの高さになる。

ただ何故できないのかは、Appleのドキュメントには記載がなく、記事を書いた人も分からない。僕も分からない。 Apple がそうしたとしか言えない。

9
8
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
9
8