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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T17:55:11+00:00 2026-05-17T17:55:11+00:00

i want to implement a UIScrollView where paging is enabled and i can just

  • 0

i want to implement a UIScrollView where paging is enabled and i can just flick through some images. Thats all i want to be able to do for now.

I have done this so far in interface builder: can someone help?

alt text

I dont know how to do the rest. Can someone please help me with this. I dont need any zooming functionality. I dont want any preview of the previous or next image within the scrollview, i just want a simple paging enabled scroll view that allows a user to flick through images.

All help is appreciated.
If you could tell me step by step how i could achieve this that would be most appreciated. thank you.

I’ve looked at code examples and they just have too much complexity going on. Ive looked at several and prefer a tutorial from the beginning. thank you

  • 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-17T17:55:12+00:00Added an answer on May 17, 2026 at 5:55 pm

    Sounds like you just need to add your content as a subview of the UIScrollView and add a gesture recognizer.

    Load your image into a UIImageView. Add the UIImageView as subview of the UIScrollView.

    // do this in init or loadView or viewDidLoad, wherever is most appropriate
    // imageView is a retained property
    self.imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"image1.png"];
    [scrollView addSubview:imageView];
    

    Add a UISwipeGestureRecognizer to the UIScrollView.

    // probably after the code above
    UISwipeGestureRecognizer *swipe = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(handleSwipe:);
    [scrollView addGestureRecognizer:swipe];
    [swipe release];
    

    On the UISwipeGestureRecognizer handler, change the loaded image in the UIImageView.

    - (void)handleSwipe:(UIGestureRecognizer *)swipe {
      // do what you need to determine the next image
      imageView.image = [UIImage imageNamed:<your replacement image here>];
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have paging UIScrollView with images. I want to implement animated zooming of image
I've got an UIScrollView object where I want to implement some effects happening when
I want to implement a simple script to do some boring housekeeping on my
Actually i want to implement swipe left and right in UIScrollview. i have scrollview
I want implement paging same as safari in iphone.When user touch below button of
I want implement forward geocoding in my app. But I am not able to
I want implement a program that can do a a Vision-based Page Segmentation. I
I want to implement a UIScrollView that has a circular shape in iPhone, kindly
I need add paging to panel, which populated with dynamically-created controls. I want implement
I have a UIScrollView 's paging enabled and set its clipToBounds = NO so

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.