soffes / SSPullToRefresh

Simple and highly customizable pull to refresh view
MIT License
885 stars 139 forks source link

Fix crash on iOS 7 due to rounding error #62

Closed msanders closed 9 years ago

msanders commented 9 years ago

This fixes a crash when using SSPullToRefreshView with a collection view on iOS 7. In SSPullToRefreshView.m:261, inset was set to {0, 0, 0, 2.1997557e-36}, which caused the pull to refresh control to incorrectly invalidate the layout and crash the app.