Crash when using IQKeyboardManager
bangerang opened this issue · comments
Johan Thorell commented
I'm using a library called IQKeyboardManager
(https://github.com/hackiftekhar/IQKeyboardManager). But when I select a textfield and use IQKeyboardManager
next function my app throws an exception at ISSUIElementDetails.m
:
I used this library before and it worked perfectly. Any idea what's causing this?
I would really love if these two great libraries could work together :)
Johan Thorell commented
This also throws an exception:
UIToolbar* numberToolbar = [[UIToolbar alloc]initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, 50)];
numberToolbar.barStyle = UIBarStyleBlackTranslucent;
numberToolbar.items = [NSArray arrayWithObjects:
[[UIBarButtonItem alloc]initWithTitle:@"Cancel" style:UIBarButtonItemStyleDone target:self action:@selector(cancelNumberPad)],
[[UIBarButtonItem alloc]initWithBarButtonSystemItem:UIBarButtonSystemItemFlexibleSpace target:nil action:nil],
[[UIBarButtonItem alloc]initWithTitle:@"Done" style:UIBarButtonItemStyleDone target:self action:@selector(doneWithNumberPad)],
nil];
[numberToolbar sizeToFit];
UITextField *pnoField = [self.view subviewWithElementId:@"loginDetailsPersonalNumberInputField"];
pnoField.inputAccessoryView = numberToolbar;
Tobias Löfstrand commented
Well, I would of course love it if InterfaCSS played nice with other frameworks as well. :) So I'll have to investigate what the underlying reason for the crash is.