利用subview 大法 改变UIPageControl的颜色

- ( void ) changedateDots

{

NSArray*subView = pageControl.subviews;

for(inti =0; i < [subViewcount]; i++)

{

if([[subViewobjectAtIndex:i]isMemberOfClass:UIImageView])

{

UIImageView*dot = [subViewobjectAtIndex:i];

dot.image= (self.currentPage== i ?imagePageStateHightlighted:imagePageStateNormal);

}

}

}


{

NSArray*subView = pageControl.subviews;

for(inti =0; i < [subViewcount]; i++)

{

if([[subViewobjectAtIndex:i]isMemberOfClass:UIImageView])

{

UIImageView*dot = [subViewobjectAtIndex:i];

dot.image= (self.currentPage== i ?imagePageStateHightlighted:imagePageStateNormal);

}

}

}


你可能感兴趣的:(view)