我不確定是否有人有這個問題的解決方法,但我一直在嘗試使用這個庫,我已經安裝了所有東西,但似乎無法達到模擬效果。我有導航設置並正常工作,但我無法設置模糊或模糊色調的顏色。我可以自定義方向和一些其他屬性,但模糊似乎沒有工作。我能想到的唯一的事情是,這並不適用於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