首页 > 代码库 > 给view添加毛玻璃效果

给view添加毛玻璃效果

给view添加毛玻璃效果

by 伍雪颖

UIToolbar *toolbar = [[UIToolbar alloc] initWithFrame:barView.bounds];
toolbar.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
toolbar.barStyle = UIBarStyleBlackTranslucent;
[barView insertSubview:toolbar atIndex:0];



给view添加毛玻璃效果