I implementing custom keyboard for ios devices. i build a layout for english qwerty and load it when the view is loaded
self.keyboard = [[[NSBundle mainBundle] loadNibNamed:@"Keyboard" owner:nil options:nil] objectAtIndex:0];
self.inputView = (UIInputView*)self.keyboard;
i need to add a option to change the layout for 3x4 Keyboard with different layout and size of height.
How can i change the layout after for example button click?
Thanks
This is what i try:
self.keyboardSmall = [[[NSBundle mainBundle] loadNibNamed:@"KeyboardSmall" owner:self options:nil] objectAtIndex:0];
self.inputView = (UIInputView*)self.keyboardSmall;
_heightConstraint = [NSLayoutConstraint constraintWithItem: self.view
attribute: NSLayoutAttributeHeight
relatedBy: NSLayoutRelationEqual
toItem: nil
attribute: NSLayoutAttributeNotAnAttribute
multiplier: 0.0
constant: 10.0];
[self.inputView addConstraint: _heightConstraint];
But it is load me a new view (for example just one row) with height of previews view(3 rows) , very spread.