Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refreshing globalMailComposer "cache" via cycleTheGlobalMailComposer #559

Closed
randdusing opened this issue Apr 3, 2016 · 0 comments
Closed

Comments

@randdusing
Copy link
Contributor

Is it possible to call this method from the app? Here's how I'm running into an issue:

  1. Execute canShareViaEmail, which return false
  2. Have user setup mail account
  3. Execute shareViaEmail, app crashes on [[self getTopMostViewController] presentViewController:self.globalMailComposer animated:YES completion:nil]; with an error message like Application tried to present a nil modal view controller on target...

If I restart the app after setting up the email and execute shareViaEmail, it works fine, but it isn't an ideal situation for the end user. Or I can just call [self cycleTheGlobalMailComposer]; at the beginning of shareViaEmail. This seems to refresh the cached email settings. So is it possible to call this function from the app, or just add it to the beginning of the shareViaEmail function?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants