rubymotion-community / BubbleWrap

Cocoa wrappers and helpers for RubyMotion (Ruby for iOS and OS X) - Making Cocoa APIs more Ruby like, one API at a time. Fork away and send your pull requests
Other
1.18k stars 208 forks source link

Update presentation of mail controller to include completion block #318

Closed chrisradford closed 10 years ago

chrisradford commented 10 years ago

Since the Mail Controller popover isn't a real view and can cause issues with the status bar coloring (http://stackoverflow.com/questions/18945390/mfmailcomposeviewcontroller-in-ios-7-statusbar-are-black) the solution seems to be to use a completion block on the mail presenter method.

However the current implementation uses the deprecated presentModalViewController, this pull request updates that to presentViewController and adds support for a completion option being passed.

clayallsopp commented 10 years ago

Sweet, thanks!