How to navigate from one view to other view using UIPageControl?

Posted by Madan Mohan on Stack Overflow See other posts from Stack Overflow or by Madan Mohan
Published on 2010-03-04T11:14:27Z Indexed on 2010/03/22 14:21 UTC
Read the original article Hit count: 705

Filed under:
|

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.

© Stack Overflow or respective owner

Related posts about uipagecontrol

Related posts about iphone