修改pageController的图片

- (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:@"[email protected]"]:[UIImage selfimageNamed:@"[email protected]"]);

        dot=nil;

    }

    subView=nil;

}

你可能感兴趣的:(修改pageController的图片)