UIAppearance customization for navigation bars with prompt: image not stretched but tiled
| Originator: | futuretap | ||
| Number: | rdar://13461131 | Date Originated: | 20-Mar-2013 11:23 AM |
| Status: | Open | Resolved: | |
| Product: | iPhone SDK | Product Version: | 6.1 |
| Classification: | UI/Usability | Reproducible: | Always |
While rdar://13461075 (Need UIBarMetricsWithPrompt appearance customization) would be the real solution to customize navigation bars with prompt, it seems to be a bug that resizable images with resizingMode UIImageResizingModeStretch used for the standard navigation bar background are not resized but *tiled*. See the screenshot: http://d.pr/i/gWJG And the corresponding code: UIImage *image = [[UIImage imageNamed:@"background"] resizableImageWithCapInsets:UIEdgeInsetsZero resizingMode:UIImageResizingModeStretch]; [[UINavigationBar appearance] setBackgroundImage:image forBarMetrics:UIBarMetricsDefault]; I'd expect the background to be stretched, not tiled.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!