evanlws
evanlws

Reputation: 93

iOS 8 Custom keyboard autolayout issues

I just finished laying out all my buttons for a custom keyboard (xib file) and when I finished adding all the constraints, I didn't have any autolayout issues but when I try to run it either on the simulator or on my 5S, the view isn't the correct size it looks like all of the items in the view sized correctly but the view did not. Is there any way to fix this?

Here is what it's supposed to look like:

IB

Here is what it looks like live:

enter image description here

And in the preview in IB:

enter image description here

Thanks in advance!

Upvotes: 1

Views: 1287

Answers (1)

evanlws
evanlws

Reputation: 93

Turns out I needed to set the frame of the keyboard view equal to the frame of it's superview

self.keyboardView.frame = self.view.frame;

simple mistake

Upvotes: 2

Related Questions