在 appdelegate 中的 didFinishLaunchingWithOptions:方法中添加如下代码:
if ([UIDevice currentDevice].systemVersion.floatValue >= 7.0)
{
//去掉 NavigationBar 底部的那条黑线
[[UINavigationBar appearance] setBackgroundImage:[[UIImage alloc] init] forBarMetrics:UIBarMetricsDefault];
[[UINavigationBar appearance] setShadowImage:[[UIImage alloc] init]];
}