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 7163459
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T13:54:24+00:00 2026-05-28T13:54:24+00:00

i have a scrolview with paging it’s a scrol view for slide with 4

  • 0

i have a scrolview with paging it’s a scrol view for slide with 4 picture it’s work fine with user interaction so my question i want to set this scrolview scrol automatique without user interaction so like a banner for pub this is my code in view didload :

 [UIScrollView beginAnimations:nil context:nil];
    [UIScrollView setAnimationDuration:4.0];

[UIScrollView setAnimationDelay:4.0];
[scroller setContentOffset:CGPointMake(320, 98)];      
[UIScrollView commitAnimations ];

in this whay the scrol automatic work but the probleme the scrol wait 4 s and after go to the seconde image and is stop and if i add this code

[UIScrollView beginAnimations:nil context:nil];
[UIScrollView setAnimationDuration:4.0];
[UIScrollView setAnimationRepeatAutoreverses:YES];
[UIScrollView setAnimationRepeatCount:INFINITY];
[UIScrollView setAnimationDelay:4.0];




[scroller setContentOffset:CGPointMake(320, 98)];

[UIScrollView commitAnimations ];

the scroller don’t stop 4s after showing the second picture so in this case it’s stop at first 4s after if the annimation begin don’t stop never

so my question i want to do this :

image 1 —showing fo 4 s —–image2 —-showing for 4s —– image3 —-showing for 4s —-image 4 —-showing for 4 s —– image 1 —- showing for 4 s …… like this automatique

so if someone can help me with example code or tutorial or any documentation it’s will be very cool because i search in google and i find anything

  • 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-05-28T13:54:24+00:00Added an answer on May 28, 2026 at 1:54 pm

    I’ve made an example in an earlier answer of mine:
    UITableView scroll smooth with certain speed?

    This example will be quite relevant for you if you can decypher the changes you need to make.

    The following is what you need to do:
    At the moment you want to start the animation (which is prolly at the start or selection on the page even) you need to start the timer. Then at a certain custom interval you can fire a method that sets the contentOffset a little further to the right (change Y-value appropriately). When you came at the end of the pages or when you ran the target method x-times (which is ezily stored in a property/global val) you can invalidate the timer.

    Look at the question I posted and you will find every piece of the puzzle there.
    You will figure it out.

    Good luck.

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

Sidebar

Related Questions

I have set paging property of scroll view to 'scrollview.pagingEnabled = YES'. When tested
I have a paging UIScrollView in which the user pages horizontally through images, like
I have a scroll view with paging control. It loads several pages according to
in the main view controller i have a scrollview and paging control. i have
I have implement a scrollview with paging but it not work ok. For every
I have a view controller with a paging scrollview displaying pages of data to
A follow on from the question I asked yesterday. I have a paging scrollView
I have a scrollview which has to display a view larger than the available
I have a horizontal ScrollView implemented and working. however, when I Scrol horizontally he
I have the following code to create a view and put it in scrollview

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.