Skip to content
This repository has been archived by the owner on Jan 7, 2018. It is now read-only.

Simplify implementation using blocks #26

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nolanw
Copy link

@nolanw nolanw commented Oct 11, 2014

No need for ad-hoc change dictionaries and such. Fixes #13

I deleted the code purporting to fix Apple bug 12954582 as it didn't seem particularly relevant to the aim of the repo as stated in the README and muddied the example. (It was also a convenient excuse to not figure out the contortions needed to port the bug workaround over to this blocks-based implementation.)

Moreover, using NSBlockOperation did not seem like a good fit. Using it simply as an array of blocks offers no obvious benefits over, well, a simple array of blocks. Plus it's not guaranteed to execute on the main thread.

No need for ad-hoc change dictionaries and such.

Fixes #13
@tonyarnold
Copy link

This worked brilliantly for me under iOS 8 & 9. Thanks for the fixes, @nolanw!

@iOSBrett
Copy link

iOSBrett commented Sep 6, 2016

This also fixed my issues with FRC and UICollectionView, have been using a variation on Ash's original implementation and had many issues in iOS9.3. I ported this to Swift and it resolves all issues I was having including double free errors. Came across this when I realised that the blocks were being executed on background threads.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants