Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Observing "parentViewController" to run code blocks is unreliable #318

robertjpayne opened this Issue · 2 comments

2 participants


Inside the setController:forSlide you add an observer for "parentViewController" to run some final code.

This is unreliable because if IIViewDeckController is assigned to the rootViewController property of a window it will never fire as it is always nil.


No really a problem since the blocks will be run anyway when viewWillAppear is called. Whichever comes first runs the blocks.

I've modified the code a bit to unobserve the parentViewController in finishTransitionBlocks.

@Inferis Inferis closed this

Didn't realize they would fire on viewWillAppear but good to clean up the observers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.