Dispatch an async task in iOS

Dispatch an async task in iOS

This will probably be the most simpel async code snippet you will find (use it wisely 😉 ):
[cc lang=”objc” escaped=”true” width=”90%” theme=”default” line_numbers=”on”]
dispatch_async(dispatch_get_main_queue(), ^{
SwitchOutlet.on = YES;
});