[docs] Tweak README code snippet.

This commit is contained in:
Nadine Salter 2015-01-21 14:34:09 -08:00
parent 5558e870f6
commit 74d9bb6c8f
2 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ dispatch_async(_backgroundQueue, ^{
node.frame = (CGRect){ CGPointZero, node.calculatedSize };
// self.view isn't a node, so we can only use it on the main thread
dispatch_sync(dispatch_get_main_queue(), ^{
dispatch_async(dispatch_get_main_queue(), ^{
[self.view addSubview:node.view];
});
});

View File

@ -52,7 +52,7 @@ dispatch_async(_backgroundQueue, ^{
node.frame = (CGRect){ CGPointZero, node.calculatedSize };
// self.view isn't a node, so we can only use it on the main thread
dispatch_sync(dispatch_get_main_queue(), ^{
dispatch_async(dispatch_get_main_queue(), ^{
[self.view addSubview:node.view];
});
});