¡@

Home 

2014/10/15 ¤U¤È 10:04:30

iphone Programming Glossary: backbuttonhomeimage

iOS 5: How to implement a custom (image) back button

http://stackoverflow.com/questions/10757565/ios-5-how-to-implement-a-custom-image-back-button

what am I missing UPDATE I've fixed it up a bit by using a resizable image. This forces it not to 'stretch' UIImage backButtonHomeImage UIImage imageNamed @ backButtonHomeWhite_30.png resizableImageWithCapInsets UIEdgeInsetsMake 0 0 0 0 UIBarButtonItem appearance.. resizableImageWithCapInsets UIEdgeInsetsMake 0 0 0 0 UIBarButtonItem appearance setBackButtonBackgroundImage backButtonHomeImage forState UIControlStateNormal barMetrics UIBarMetricsDefault To fix the title showing up on the button I had to do self.title.. objective c ios ios5 uibarbuttonitem share improve this question Assuming that your current solution UIImage backButtonHomeImage UIImage imageNamed @ backButtonHomeWhite_30.png resizableImageWithCapInsets UIEdgeInsetsMake 0 0 0 0 UIBarButtonItem appearance..