Reputation: 93
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:
Here is what it looks like live:
And in the preview in IB:
Thanks in advance!
Upvotes: 1
Views: 1287
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