spotify/cocoalibspotify — pull request #102 by asmallteapot (2012-09-20 23:37:42+00:00)
Title: Allow greater control over SPLoginViewController navigation

This pull request adds a `dismissesAfterLogin` property to SPLoginViewController.

The default value, `YES`, maintains the current behaviour of automatically dismissing SPLoginViewController after the user successfully completes the Spotify login flow.

Setting `dismissesAfterLogin` to NO allows the controller to be dismissed by its delegate.

When presenting SPLoginViewController from a modal view controller, this will allow both the login controller and its presenting to controller to be dismissed simultaneously. Obtaining this behaviour in the current version [requires a bit of hacking](https://gist.github.com/3758932).