Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

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

Closed
robertjpayne opened this Issue · 2 comments

2 participants

@robertjpayne

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.

@Inferis
Owner

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
@robertjpayne

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.