UINavigationBar:How to add background image with UINavigationController?
2012-07-17 14:25
477 查看
@import url(/css/cuteeditor.css);
[self.navigationBar setBackgroundImage:[UIImage imageNamed:@"yourpngfile.png"] forBarMetrics:UIBarMetricsDefault];
use this method;
carefully : self.navigationBar may use in Subclass of UINavigationController,not self.navigationController.navigationBar
@import url(http://www.cnblogs.com/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css);
[self.navigationBar setBackgroundImage:[UIImage imageNamed:@"yourpngfile.png"] forBarMetrics:UIBarMetricsDefault];
use this method;
carefully : self.navigationBar may use in Subclass of UINavigationController,not self.navigationController.navigationBar
@import url(http://www.cnblogs.com/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css);
相关文章推荐
- How to fill the background with image in landscape in IOS? 如何使image水平铺满屏幕
- Add Custom Background Image to UINavigationBar in iOS 5
- How to add subview to a webview so that the subview would scroll along with webview?
- How to add an image on reportViewer (rdlc)
- Add child view controller to UINavigationController
- How to add a new MimeType to a Virtual Directory with VC++?
- [Yii Framework] How to develop an extension with image, css and js
- How to tile small texture image onto page as its background?
- How do I add an integer value with javascript (jquery) to a value that's returning a string?
- FCKEditor 2.x: How to add a new button with custom javascript to the toolbar
- How to add extra harddriver, relocate /home in Ubuntu with VMWare player
- How to properly image a computer with NS Client (Altiris Agent) installed
- How to populate the datagrid on background thread with data binding by using Visual C#
- how to set UITableViewCell background image
- How to Insert Word Image at Specific Location with C#, VB.NET
- How to stretch a background image of a windows form
- How to specify image folder path for each user when use TinyMce ImageManager with Symfony
- How can I set the background of UITableView (the tableview style is "Grouped") to use an image?
- How to solve “add/remove operation is impossible, because the code element 'Cxxx' is read only” With
- How to tile small texture image onto page as its background