spotify/cocoalibspotify — pull request #103 by asmallteapot (2012-09-26 19:26:03+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).

(This is pull request #102 with the merge target changed to the `dev` branch.)