ole / OLEContainerScrollView

A UIScrollView subclass that intelligently handles multiple child scroll views and does not interfere with UIKitʼs cell reuse functionality.
http://oleb.net/blog/2014/05/scrollviews-inside-scrollviews/
MIT License
587 stars 67 forks source link

Ensure observations are not added multiple times #19

Closed JimRoepcke closed 6 years ago

JimRoepcke commented 6 years ago

In our app we are calling addContentSubviewToTop: on the same subview multiple times (to move the subview to top). This was causing KVO observations to be added multiple times for the same subview. This guards against this situation to not re-configure and re-observe the subview.

ole commented 6 years ago

@JimRoepcke Thanks again. I really appreciate your patches.