您的位置:首页 > 产品设计 > UI/UE

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);
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: