IdleHandsApps / IHKeyboardAvoiding

IHKeyboardAvoiding is an elegant solution for keeping any UIView visible when the keyboard is being shown - no UIScrollView required!
MIT License
1.41k stars 151 forks source link

Fatal Crash if Avoiding View is Improperly Set #30

Closed Marquis103 closed 7 years ago

Marquis103 commented 7 years ago

I caught this in a code review of someones code. They set a view to be the avoiding view of an outlet in viewDidLoad and the code crashed. There was a ton of force unwrapping when the app crashed. Just passing along. Very easy fix would be to nil coalesce the count to 0 if the avoiding view is nil.

crashed

fraserscottmorrison commented 7 years ago

Hiya Marquis,

This one was fixed a couple weeks ago - the latest version, 3.7, will sort you out

Cheers Fraser