Background color of Back Button in Rubymotion
In UIViewController:
back_button_background = UIImage.imageNamed("back_btn.jpg").resizableImageWithCapInsets([0, 14, 0, 6])
back_button = UIBarButtonItem.appearance.setBackButtonBackgroundImage(back_button_background, forState: UIControlStateNormal, barMetrics: UIBarMetricsDefault)
self.navigationItem.backBarButtonItem = back_button
Written by Gourav Tiwari
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Rubymotion
Authors
Related Tags
#rubymotion
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#