Hi Guys, I have page control but not navigating to other view. so please provide the solution.
pageControl=[[UIPageControl alloc] initWithFrame:CGRectMake(0,380,320,40)];
pageControl.backgroundColor=[UIColor clearColor];
pageControl.userInteractionEnabled =YES;
[pageControl addTarget:self action:@selector(pageAction:) forControlEvents:UIControlEventValueChanged];
[pageControl setHighlighted:YES];
-(void)pageAction:(UIPageControl*)control
{
[self displayNextPage];
[self displayPreviousPage];
}
Thank You, Madan Mohan.