RNBlurModalView icon indicating copy to clipboard operation
RNBlurModalView copied to clipboard

i can't change dismissButton style

Open coolgo opened this issue 10 years ago • 1 comments

i want to change the dismissbutton style but ,how can i do

coolgo avatar Aug 11 '14 08:08 coolgo

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

coolgo avatar Aug 12 '14 10:08 coolgo