Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HyPopMenuViewd 的背景图没有提供更改方法吧,没找着 #2

Closed
liujieyuu opened this issue Jan 7, 2016 · 2 comments
Closed

Comments

@liujieyuu
Copy link

HyPopMenuViewd 的背景图没有提供更改方法吧,没找着

@wwdc14yh
Copy link
Owner

你指的是上半部分那个那个背景图片吗? 如果是这个的话 是有提供相关接口的!

@property (nonatomic,weak) UIView *TopView; //自定义的顶部视图

如果是整个blurView的背景 那就暂时不可修改 如果你真的有需要 可以自行改源代码`double version = [[UIDevice currentDevice].systemVersion doubleValue];
if (version >= 8.0f) {

    UIBlurEffect *blur = [UIBlurEffect effectWithStyle:UIBlurEffectStyleExtraLight];
    BlurView = [[UIVisualEffectView alloc] initWithEffect:blur];
    ((UIVisualEffectView *)BlurView).frame = self.bounds;

}else if(version >= 7.0f){

    BlurView = [[UIToolbar alloc] initWithFrame:self.bounds];
    ((UIToolbar *)BlurView).barStyle = UIBarStyleDefault;

}else{

    BlurView = [[UIView alloc] initWithFrame:self.bounds];
    [BlurView setBackgroundColor:[UIColor colorWithRed:1 green:1 blue:1 alpha:0.9f]];
}` 

@liujieyuu
Copy link
Author

e ,看到了,谢谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants