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

Customize UINavigationBar and remove drop shadow at the bottom of UINavigationBar

2013-08-29 13:59 447 查看
UIImage
*navigationBarImg = [UIImage
imageNamed:@"navigationBar"];

//You must specified the BarMetrics for UINavigationBar, Otherwise it reports an exception.

[[UINavigationBar
appearance]
setBackgroundImage:navigationBarImg
forBarMetrics:UIBarMetricsDefault];

//This is the key to eliminate drop shadow of UINavigationBar

[[UINavigationBar
appearance]
setShadowImage:[[UIImage
alloc]init]];
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐