wwdc14yh / HyPopMenuView

模仿新浪微博弹出菜单
726 stars 186 forks source link

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

Closed liujieyuu closed 8 years ago

liujieyuu commented 8 years ago

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

wwdc14yh commented 8 years ago

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

@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 commented 8 years ago

e ,看到了,谢谢