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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T15:53:40+00:00 2026-05-24T15:53:40+00:00

Well I have an image and I I want that when I touch it

  • 0

Well I have an image and I I want that when I touch it and then I move my finger it follows it.but I want that it follows it only vertically like a vertical scrollview(but I don’t wanna use a scrollview).How can I do this please. sorry for my english I’m french :/

  • 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-24T15:53:40+00:00Added an answer on May 24, 2026 at 3:53 pm

    Why wouldn’t you subclass UIScrollView for your view that displays the image? If you do it’s pretty simple: define its size so that the horizontal length doesn’t exceed the screen length. You’d have to also remember to change this if you allow rotation of the device/view to landscape. Suppose the width of your UIScrollView is 320, you would do this:

    CGSize scrollableSize = CGSizeMake(320, myScrollableHeight);
    [myScrollView setContentSize:scrollableSize];
    

    Where myScrollableHeight is the full height of the image.

    I’ve never used it but if that doesn’t work there is apparently a method you can provide for your UIScrollView class that is called whenever the user attempts to scroll and you can just not adjust the X-coordinate there:

    float oldX; // make this ivar in your .h file
    
    - (void)scrollViewDidScroll:(UIScrollView *)aScrollView
    {
        [aScrollView setContentOffset: CGPointMake(aScrollView.contentOffset.y, oldX)];
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have one image. i want that when someone scrolls the browser window then
I have a Image XML menu that works well, but with a litle problem
I have a well div, and I would like to attach a small text/image
i have one image and i want that when i will home mouse on
I want to have an image in a webpage that can be changed based
I have a high-resolution image that I want to use as a tiled map
The code below crops the image well, which is what i want, but for
I have an image that the user drew on a canvas and i want
I have a simple image gallery that I've paginated, and I want to to
I have a large non-map image that I want to allow people to view

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.