横向视图自定义键盘中的自动布局问题

时间:2015-06-15 08:59:52

标签: ios keyboard autolayout landscape

我为自定义键盘创建了keyboard.xib,它在所有设备的纵向模式下都能正常工作,但我无法为横向模式设置约束。

self.keyboard=[[[NSBundle mainBundle] loadNibNamed:@"Keyboard" owner:nil options:nil] objectAtIndex:0];
[self addGesturesToKeyboard];
self.inputView=self.keyboard;

enter image description here

enter image description here

有人告诉我为什么会这样,或者我缺少什么约束。

1 个答案:

答案 0 :(得分:0)