Skip to content

Instantly share code, notes, and snippets.

@colinta
Created April 27, 2013 21:50
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save colinta/5474880 to your computer and use it in GitHub Desktop.
Save colinta/5474880 to your computer and use it in GitHub Desktop.
Teacup.handler UINavigationBar, :backgroundImage { |styles|
styles.each do |metric, image|
metric = metric.uibarmetrics if metric.is_a? Symbol
self.setBackgroundImage(image && image.uiimage, forBarMetrics:metric)
end
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment