Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9148123
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T11:11:18+00:00 2026-06-17T11:11:18+00:00

I already have a scrollview with an image in and I set paging in

  • 0

I already have a scrollview with an image in and I set paging in the IB to on, so I didn’t use a pageControl. That all works, and I can go between images, but how can I make it automatically scroll? Like the thing on the featured page of the App Store?

I was thinking of having two NSTimers – one to scroll 320 points in say 0.3 seconds, and a second to count 4 seconds which then fires the first one. How would I do that? Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T11:11:19+00:00Added an answer on June 17, 2026 at 11:11 am

    Instead using of NSTimer you can use [self performSelector: withObject: afterDelay:]

    - (void) viewWillAppear:(BOOL)animated
    {
        [super viewWillAppear:animated];
        // start repeatable method
        [self performSelector:@selector(makeTick) withObject:nil afterDelay:4.0f];
    }
    
    - (void) makeTick {
    
        [self performSelector:@selector(makeTick) withObject:nil afterDelay:0.3f];
    
        // Calclulate new offset
        CGPoint pt = self.scrollView.contentOffset;
        pt.x += self.scrollView.frame.size.width;
        // If it's a last subview in scrollview return back
        if (!(pt.x < self.scrollView.contentSize.width)) {
            pt.x = 0;
        }
        [self.scrollView setContentOffset:pt animated:YES];
    }
    

    BUT! It’s a just simple example how to make you scroll “animated”. If you want make “infinitive” scroll behavior like in AppStore you have to use another solution.

    Check this tutorial to make circular and infinitive scroll view.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a ViewController with a view that contains a ScrollView and a PageControl
I have a paged scrollview. Each page has a viewcontroller (buttonViewController) that manages a
I have subclassed the image control (to display images at their true pixel size,
We already have a good build server in Hudson but we want something that
I have a conflict between a ScrollView and a ViewPager . I'm trying to
I have a LinearLayout view that already contains several elements. I want to add
I already have my azure web role running in cloud using azure sdk 1.6.
We already have the database with real data inside. Now we want to build
i already have a project with TreeNode class which creates a hierachy of nodes
I already have code which lazy loads scripts on request. My issue now is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.