title: UIpagecontrol Need Animation Rigth to Left
body: <p>Using UIControlpage in my application. load the image and display in page control successfully. but i want to display the images animation like right to left move. Using timer call page control and increase the array count.</p>
  
  <p>//// using NSTimer to call function to show the animation.</p>
  
  <pre><code>[NSTimer scheduledTimerWithTimeInterval:5.0
                                       target:self
                                     selector:@selector(loadNextController)
                                     userInfo:nil
                                      repeats:YES];
  
  ScrollViewPage = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 20, frameX, frameY)];
  ScrollViewPage.pagingEnabled = YES;
  ScrollViewPage.backgroundColor=[UIColor redColor];
  ScrollViewPage.delegate = self;
  ScrollViewPage.backgroundColor = [UIColor clearColor];
  ScrollViewPage.contentSize = CGSizeMake(frameX, frameY);
  ScrollViewPage.showsHorizontalScrollIndicator = NO;
  
  
  ScrollViewPage.pagingEnabled = YES;
  pageControl = [[UIPageControl alloc] init];
  pageControl.frame = CGRectMake(100,self.view.frame.size.height-100,self.view.frame.size.width-200,100);
  pageControl.numberOfPages = [_pageImages count];
  pageControl.currentPage = 0;
  
  [self.view addSubview: ScrollViewPage];
  
  for(int i = 0; i &lt; [_pageImages count]; i++)
      {
  
          NSURL *url = [NSURL URLWithString:[_pageImages objectAtIndex:i]];
          NSData *data = [[NSData alloc] initWithContentsOfURL:url];
          UIImage *tmpImage = [UIImage imageWithData:data];
          _backgroundImageView = [[UIImageView alloc] initWithImage:tmpImage];
           _backgroundImageView.frame = CGRectMake(frameX * i, 0.0, frameX, frameY);
          [ScrollViewPage addSubview:_backgroundImageView];
  
  
      }
  
  ScrollViewPage.contentSize = CGSizeMake(frameX*[_pageImages count], frameY);
  pageControl.backgroundColor=[UIColor orangeColor];
  [self.view addSubview:pageControl];
  [pageControl addTarget:self action:@selector(pageTurn:) forControlEvents:UIControlEventValueChanged];
  </code></pre>
  
  <p>///// Here call the timer function</p>
  
  <pre><code>- (void)loadNextController
  {
       pageControl.currentPage = (pageControl.currentPage+1)%self.pageImages.count;
       ScrollViewPage.contentOffset = CGPointMake(pageControl.currentPage * self.view.bounds.size.width, 0);
  }
  </code></pre>
  
  <p>Here i need to show left to right move in uipagecontrol. help me..</p>