修改pageController的图片

宇文鸿畴
2023-12-01

- (void) setBotPageControllerImage

{

    NSArray *subView = pagecontrol.subviews;

    for (int i =0; i < [subView count]; i++)

    {

        UIImageView *dot = [subView objectAtIndex:i];

        dot.image = (pagecontrol.currentPage == i ?[UIImage selfimageNamed:@"zxyc_selected@2x.png"]:[UIImage selfimageNamed:@"zxyc_normal@2x.png"]);

        dot=nil;

    }

    subView=nil;

}

 类似资料: