tolo / InterfaCSS

The CSS-inspired styling and layout framework for iOS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Crash when using IQKeyboardManager

bangerang opened this issue · comments

I'm using a library called IQKeyboardManager (https://github.com/hackiftekhar/IQKeyboardManager). But when I select a textfield and use IQKeyboardManagernext function my app throws an exception at ISSUIElementDetails.m:
screen shot 2015-12-02 at 14 22 23

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 :)

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;

Same file:
screen shot 2015-12-02 at 14 41 29

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.