RNBlurModalView
RNBlurModalView copied to clipboard
i can't change dismissButton style
i want to change the dismissbutton style but ,how can i do
thanks ,i create a simple category to friendly solve it. @interface RNBlurModalView (CLFIX) -(void)changeCloseButtonImage:(UIImage*)img; @end @implementation RNBlurModalView (CLFIX)
-(void)changeCloseButtonImage:(UIImage*)img{
for (UIView* view in self.subviews) {
if ([view isKindOfClass:[UIButton class]]) {
DLog(@"btn:%@",view);
UIButton *btn=(UIButton*)view;
[btn setBackgroundImage:img forState:UIControlStateNormal];
}
}
} @end
so,i can easily change the closebutton image