iOS5 Toolbar background image
问题 I'm very new to iOS programming. I'm trying to set the toolbar background to a custom image. I'm also using storyboards. How do I go about that? Do I edit UIToolbar in the UI Kit framework? Do I need to change something in Storyboard? Thanks, 回答1: You can use UIToolbar 's built-in -setBackgroundImage:forToolbarPosition:barMetrics: method: // portrait [yourToolbar setBackgroundImage:[UIImage imageNamed:@"YourToolbarBkg-Portrait.png"] forToolbarPosition:UIToolbarPositionAny barMetrics