0

This might be a bug in iOS7..? When I add the accessoryview I use the following code in viewDidLoad:

UIView *inputAccView = [[UIInputView alloc] initWithFrame:CGRectMake(0, 0.0, 320, 50) inputViewStyle:UIInputViewStyleKeyboard];

That works as expected, background same as regular keyboard in iOS7. But when I use:

[textfield setInputView:[[UIInputView alloc] initWithFrame:CGRectMake(0, 0,320, 215) inputViewStyle:UIInputViewStyleKeyboard]];

It does now work, sometimes gives a transparent blurry background as seen in attached image, other times just returning a grey background. I have only run in simulator

I'm I doing something wrong or is this a bug?enter image description here

Daniel Åkesson
  • 1,330
  • 1
  • 12
  • 21

1 Answers1

0

If you intend to have a the input view as a toolbar accessory to your uikeyboard, Shouldn't you be adding it as [textField setInputAccessoryView:myInputView]?

user134611
  • 766
  • 1
  • 11
  • 22