Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

iphonejudy

macrumors 6502
Original poster
Sep 12, 2008
301
1
I used the below code for creating page control


Code:
CGRect frame = CGRectMake(0.0, 0.0, 200.0, 40.0);
UIPageControl *pageControl = [[UIPageControl alloc] initWithFrame:frame];
[pageControl addTarget:self action:@selector(action:) forControlEvents:UIControlEventTouchUpInside];
[pageControl setBackgroundColor:[UIColor clearColor]];
pageControl.numberOfPages = 10;
But the control is not visible in run time.

I designed it in design time also.It didnt visible.

Can anyone tel the solution please?
 
I solved it by,

Code:
pagecontrol.backgroundColor = [UIColor grayColor];
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.