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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T21:54:26+00:00 2026-05-26T21:54:26+00:00

I am creating a semi-piano app in Objective-C for iPhone; it’s in fact a

  • 0

I am creating a semi-piano app in Objective-C for iPhone; it’s in fact a diffrent layout MIDI Controller, but I’m still working on the design.

I created all of the “keys” with UIButtons, and I want to be able to slide to them or from them to other UIButtons.

I read all the similar questions before, but I couldn’t make it to work with touchesMoved,
Because it only worked from the view if I didn’t drag the finger from a UIButton.

Thanks in advance, code will be appreciated!

  • 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-26T21:54:26+00:00Added an answer on May 26, 2026 at 9:54 pm

    Are your buttons created in IB? The default event when connecting buttons in IB is “touch up inside”, which means the action is fired when the user ends a touch (lifts the finger) inside the button. A piano key or similar would be more appropriate to fire on the “touch down inside” (for the initial press) and the “touch drag enter” (for when a finger that is already on the screen moves into the button).

    Since you are doing it programmatically, you can add targets to the buttons as described here:

    http://developer.apple.com/library/ios/documentation/uikit/reference/UIControl_Class/Reference/Reference.html#//apple_ref/occ/instm/UIControl/addTarget:action:forControlEvents:

    Just include the events you want in the mask.

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

Sidebar

Related Questions

Creating an a app, where I store bunch of photos in the drawable folder,
Creating extensions got much easier with Vs2010, but this seems not to be the
I've been creating a blog, which contains of 3 diffrent views. - Overview -
Creating the closure is easy but using it is confusing for me. Here is
I am current working on a semi large MVC 2 project and the number
I'm creating an iPad app for 3.2 and later. My app has an overlay
I have a (semi)RESTful web service that I'm working on written in c++. We
I am creating a rails app which will help out businesses. These businesses have
I am creating an application which will store a (semi) real-time feed of a
Creating a website using simple html(not html5) and css but got stock in mouseover

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.