{"comment":{"url":"https://api.github.com/repos/michaeltyson/TPKeyboardAvoiding/comments/9228186","html_url":"https://github.com/michaeltyson/TPKeyboardAvoiding/commit/cb424faa569bdcfacc0f136a03bb4376196672ba#commitcomment-9228186","id":9228186,"user":{"login":"farri","id":1243739,"avatar_url":"https://avatars.githubusercontent.com/u/1243739?v=3","gravatar_id":"","url":"https://api.github.com/users/farri","html_url":"https://github.com/farri","followers_url":"https://api.github.com/users/farri/followers","following_url":"https://api.github.com/users/farri/following{/other_user}","gists_url":"https://api.github.com/users/farri/gists{/gist_id}","starred_url":"https://api.github.com/users/farri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/farri/subscriptions","organizations_url":"https://api.github.com/users/farri/orgs","repos_url":"https://api.github.com/users/farri/repos","events_url":"https://api.github.com/users/farri/events{/privacy}","received_events_url":"https://api.github.com/users/farri/received_events","type":"User","site_admin":false},"position":null,"line":null,"path":"","commit_id":"cb424faa569bdcfacc0f136a03bb4376196672ba","created_at":"2015-01-10T01:57:38Z","updated_at":"2015-01-10T01:57:38Z","body":"still crash :( \r\n- (void)TPKeyboardAvoiding_initializeView:(UIView*)view {\r\n    if ( [view isKindOfClass:[UITextField class]] /// here it crashes\r\n            && ((UITextField*)view).returnKeyType == UIReturnKeyDefault\r\n            && (![(UITextField*)view delegate] || [(UITextField*)view delegate] == (id<UITextFieldDelegate>)self) ) {\r\n        [(UITextField*)view setDelegate:(id<UITextFieldDelegate>)self];\r\n        UIView *otherView = nil;\r\n        CGFloat minY = CGFLOAT_MAX;\r\n        [self TPKeyboardAvoiding_findTextFieldAfterTextField:view beneathView:self minY:&minY foundView:&otherView];\r\n        \r\n        if ( otherView ) {\r\n            ((UITextField*)view).returnKeyType = UIReturnKeyNext;\r\n        } else {\r\n            ((UITextField*)view).returnKeyType = UIReturnKeyDone;\r\n        }\r\n    }\r\n}\r\n"}}