UIPageControl 小点图片更换

UIPageControlsubview中有UIImageView

遍历subview找到UIImageView 类后,把他的image换成你的图片就行了


NSArray *subView = self.subviews;
		for (int i = 0; i < [subView count]; i++)
        {
			UIImageView *dot = [subView objectAtIndex:i];
			dot.image = (self.currentPage == i ? imagePageStateHighlighted : imagePageStateNormal);
		}


你可能感兴趣的:(UIPageControl 小点图片更换)