Skip to content

Instantly share code, notes, and snippets.

@eytanschulman
Created January 20, 2014 15:20
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eytanschulman/8521776 to your computer and use it in GitHub Desktop.
Save eytanschulman/8521776 to your computer and use it in GitHub Desktop.
How to make UIActivityViewController not lag
[[NSOperationQueue mainQueue] addOperationWithBlock:^{
[self presentViewController:activityVC animated:YES completion:^{
}];
}];
@AndrewSB
Copy link

AndrewSB commented Nov 6, 2015

+1

@ijpe
Copy link

ijpe commented Oct 19, 2016

Thank you

@mickeyl
Copy link

mickeyl commented Nov 16, 2017

How is that supposed to change anything for the good? The only effect this has is to run it in the next incarnation of the mainloop, i.e. even later than when you directly call it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment