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

  • Home
  • SEARCH
  • 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 7012403
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T22:15:05+00:00 2026-05-27T22:15:05+00:00

I am making a book application and i used UIScrollView for paging. Everything is

  • 0

I am making a book application and i used UIScrollView for paging. Everything is going pretty well but when i started coding the function for drag and drop Images it’s not working, but the code works in my other projects without the UIScrollView.

Is it possible to apply drag and drop functionality on a UIScrollView?

here’s my code

    image1 = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"image1.png"]];
    [image1 setFrame:CGRectMake(2834, 225, 150, 184)];
    [scrollPaging addSubview:image1];

- (void) touchesMoved:(NSSet*)touches withEvent:(UIEvent*)event {
    UITouch *touch = [touches anyObject];   
    CGPoint location = [touch locationInView:self.view];

    image1.center = location;
}
  • 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-27T22:15:06+00:00Added an answer on May 27, 2026 at 10:15 pm

    The trick is to disable scrolling on the scrollview when you detect that you are starting to drag an item (I use a delayed selector to determine a start drag operation), and re-enable scrolling once you release the touch.

    To disable scrolling use…

    [scrollView setScrollEnabled:FALSE];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Well I'm making a small phone book application and I've decided that using maps
I'm learning about ASP.NET, mainly by following through a book, but also making an
I am making a book application. To move to the next topic I am
I am making an application of e book reading, in that i want to
I'm reading the GoF book on design patterns and now everything is making a
In my Yii application I have a pretty simple model setup. I've used the
I'm making an aspx page that can edit books. A book is an complex
I'm making a Android application to scan 2D barcodes. I'm using the Zxing source
I am making a web application and I want for when the user clicks
I'm thinking about making a simple web application to practice custom tags, EL, ...

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.