toursprung/TSMessages — pull request #152 by Bluezen (2014-05-12 09:44:01+00:00)
Title: Callback is now called when the message view is dismissed.

At the moment documentation defines the callback like that that: "The block that should be executed, when the user dismissed the message by tapping on it or swiping it to the top".

Unfortunately right now callback is called only after the message view gets touched.

For my own use I prefer that the callback block gets called whenever the message view is dismissed, whatever is the way it has been dismissed.
Here is my quick proposition of a way to achieve this, not 100% sure if I have done it the best way though (for this purpose it might be a better idea to call the callback directly inside the view before it gets removed from parents...).

This pull request is related to question #139