iOS 7 导航栏背景模糊效果在 iPhone 4 中不起作用

标签 ios ios7

在iPhone4中,默认的iOS7导航栏半透明/模糊效果不起作用。我使用以下代码实现iOS7主题效果。

self.edgesForExtendedLayout = UIRectEdgeAll;
self.automaticallyAdjustsScrollViewInsets = YES;
self.extendedLayoutIncludesOpaqueBars = NO;

[[UINavigationBar appearance] setTintColor:[UIColor colorWithWhite:0.0 alpha:0.5]];

注意:在iPhone4中,iOS 7.1.2 AppStore也没有该效果。而在 iPhone 5 和其他设备中,其应用程序(例如 AppStore、Itunes...等)具有默认的 iOS 7 主题效果。

有什么方法可以在 iPhone 4 、 iOS 7 中实现这种特定的 UI 效果。以及你的想法...

最佳答案

出于性能原因,iPhone 4 删除了此功能 - 如果您确实需要此功能,请在 Github 上查找 custom implementations这将适用于其他设备。

请记住,Apple 删除此功能是有原因的,最好不要保留它!

关于iOS 7 导航栏背景模糊效果在 iPhone 4 中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24799519/

相关文章:

ios - 设置 launchscreen.xib objective-c iOS 的时间

iOS 7 动画 block 未被调用

ios - 可以从 iOS 设备获取多少小时的日志/控制台日志?

iOS 7 半透明模态视图 Controller

ios - iOS 7 中的应用程序崩溃

ios - 使用 AVPlayer 的多个实例进行 AirPlay

ios - 如何在 Objective C 中删除 View

ios - [AVPlayerLayer super View ] : unrecognized selector sent to instance in Swift

ios - NSURLSession 因使用 TLS 1.2 的 SSL 页面而失败

iOS 7 UITableView didSelectRowAtIndexPath pushViewController 编程,动画问题