Reputation: 81
I am working on an iOS custom keyboard extension. My keyboard appears shorter than regular keyboard. See this:
Please follow these steps to produce the result:
UIViewController
and drag 2 UIButtons
to the view controller. UIButtons
should be stretched and have equal height. Development Environment:
Upvotes: 0
Views: 917
Reputation: 11
I had similar issue (xcode 8.3), my keyboard would be smaller then the standard one (default settings). For organising the keys I use stack views which help layout the buttons without hard constraints. What I do to preserve the height of the keyboard is setting the relation of height constraints for each stack view to "Greater Than or Equal" (Default value is Equal): new settings and preserved keyboard height
best, Yury
Upvotes: 1
Reputation: 362
I had a similar problem and solved it by setting a new constrain for the height
Upvotes: 0
Reputation: 353
Did you use constraint for height for your keyboard's view? If no, try to set this.
Also, put a checkmark to 'height' value in your screenshot for a buttons (or just make a ctrl-drag from the button to herself and choose 'height' item in the pop-up - this will work for keyboard's view too).
Upvotes: 0