我不确定是否有人有这个问题的解决方法,但我一直在尝试使用这个库,我已经安装了所有东西,但似乎无法达到模拟效果。我有导航设置并正常工作,但我无法设置模糊或模糊色调的颜色。我可以自定义方向和一些其他属性,但模糊似乎没有工作。我能想到的唯一的事情是,这并不适用于iOS 8.工作这里是我的RootViewController的的awakeFromNib
:REFrostedViewController和iOS 8
- (void)awakeFromNib {
self.contentViewController = [self.storyboard instantiateViewControllerWithIdentifier:@"homeController"];
self.menuViewController = [self.storyboard instantiateViewControllerWithIdentifier:@"sideMenuController"];
self.liveBlur = NO;
self.liveBlurBackgroundStyle = REFrostedViewControllerLiveBackgroundStyleLight;
self.blurRadius = 60;
self.blurTintColor = [UIColor colorWithRed:45/255.0 green:55/255.0 blue:56/255.0 alpha:0.6];
}
你应该看看原来的苹果模糊:http://www.raywenderlich.com/84043/ios-8-visual-effects-tutorial – gronzzz 2014-12-08 00:20:07
@gronzzz感谢您指出的教程。我试图避免重新发明轮子,如果我能找到一个已经开发出来的图书馆,但没有一种行为似乎是我所需要的。如果我找不到解决方案,我可能只需要为我的需求编写一个解决方案 – 2014-12-08 02:14:56