Created
July 16, 2015 11:46
-
-
Save chenr2/1eec8b68d0cbb66b76c7 to your computer and use it in GitHub Desktop.
Swift snippet: hop back to the main thread
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dispatch_async(dispatch_get_main_queue()) { | |
self.someMethod(self.someProperty) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment