prix-fixe / PFTwitterSignOn

Single Sign on via Twitter using the native iOS SDK, and falling back to a web-based OAuth redirect.
MIT License
12 stars 4 forks source link

Use a cancel block #4

Open jaimeat1 opened 10 years ago

jaimeat1 commented 10 years ago

Thank you for this smart pod, it saves a lot of work and it's really easy to use!

As a future improvement, please consider add a cancel block as a new parameter in the method requestAuthenticationInView:andCompletion:, to be executed when user cancels action sheet.

Thanks!

zrxq commented 10 years ago

@jaimeat1 Meanwhile, you can work around this limitation using requestAuthenticationWithSelectCallback:andCompletion: (optionally utilising [PFTwitterAccountSelectDialog showSelectDialogInView:withItems:cancelButtonTitle:confirmBlock:cancelBlock:]), see https://github.com/prix-fixe/PFTwitterSignOn/blob/master/PFTwitterSignOn/PFTwitterSignOn.m#L54 for example.