Skip to content

Instantly share code, notes, and snippets.

@codeOfRobin
Created August 20, 2015 07:34
Show Gist options
  • Save codeOfRobin/bdad212601fd121d6ced to your computer and use it in GitHub Desktop.
Save codeOfRobin/bdad212601fd121d6ced to your computer and use it in GitHub Desktop.
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), { () -> Void in
let img = getImageWithColor(colorToSet, CGSizeMake(100, 100))
dispatch_async(dispatch_get_main_queue(), { () -> Void in
self.navigationController?.navigationBar.setBackgroundImage(img,forBarMetrics: .Default)
self.pageIndicatorContainer.backgroundColor = colorToSet
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment