Resolved UIPageControl

Discussion in 'iOS Programming' started by Nnavick, Mar 21, 2012.

  1. Nnavick, Mar 21, 2012
    Last edited: Mar 21, 2012

    Nnavick macrumors regular

    Joined:
    Oct 13, 2010
    #1
    Hi,
    Is there possibility to turn pages in UIPageControl automatically?
    My goal is to turn page every 3 seconds automatically using NSTimer.

    Thanks!

    Edit:
    Solved by using the code below

    PHP:
     CGRect frame sv.frame;
        
    frame.origin.frame.size.width NPages;
        
    frame.origin.0;
        [
    sv scrollRectToVisible:frame animated:YES];
     
  2. jnoxx macrumors 65816

    jnoxx

    Joined:
    Dec 29, 2010
    Location:
    Aartselaar // Antwerp // Belgium
    #2
    Great, I guessed you used a timer (handy for reference if other people are in need of help!)
    Second, you can set your thread as resolved, it's easier to find then.
     

Share This Page