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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T02:37:21+00:00 2026-06-04T02:37:21+00:00

I want to drag and drop UIbutton in my app like iPhone main screen

  • 0

I want to drag and drop UIbutton in my app like iPhone main screen icons.

I can do this but while clicking the button it should perform an action. But this action is also called while dragging the button. I am using UIControlEventTouchDown for touch action and UIControlEventTouchDragInside for dragging the button.

  • 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-04T02:37:23+00:00Added an answer on June 4, 2026 at 2:37 am

    Maybe you can use UIControlEventTouchUpInside for this action instead touch down.
    In UIControlEventTouchDragInside you may change the shared variable named like “dragPerformed” to YES, and then, if it is NO perform click button action in UIControlEventTouchUpInside, if YES – do nothing (that is drag) and turn it to NO

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

Sidebar

Related Questions

i want to drag and drop my UIButton from one place to another, and
I want to allow drag-and-drop re-ordering of photoshop-like layers. Assuming I have 3 canvas
I have a WPF 4 app which I want to enable drag and drop
i want to implement a Drag/Drop mechanic in WPF, but it didn't work... With
Based off of this Drag/Drop example If I want to increment the the value
How can I develop drag and drop functionality in QML? I want to drag
I want to drag and drop an image on wpf application form. Can anyone
I want to do a simple drag-drop using jQuery. I have not done anything
I want to drag&drop from treeview to datagrid view. The code for drag is
Hey I am implementing the drag and drop operations using Kineticjs Now I want

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.