- (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; } |