I used the below code for creating page control
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?
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;
I designed it in design time also.It didnt visible.
Can anyone tel the solution please?