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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T21:42:45+00:00 2026-05-24T21:42:45+00:00

The app I am currently developing uses draggable UIButtons created programmatically. They work very

  • 0

The app I am currently developing uses draggable UIButtons created programmatically. They work very well: after creating them, I add a UIPanGestureRecognizer which enables me to track their position as they are dragged.

I also have added a different background for their UIControlStateHighlighted. However, I would like more than just a different background image: I would like the button to grow to a larger size when it is first touched. This behavior should look a little like what happens when one presses a letter on the keyboard.

I have tried to change its size in the touchesBegan of the UIPanGestureRecognizer object, but it does not respond when first touched: only when the user starts dragging.

Thank you in advance for your help

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

    Move Me is a sample project provided by Apple which demonstrates how to track an object with gestures and touches, and also has code which changes the size of the object. It is done with a UIView, but the code should be easily portable to a UIButton. Hope that helps!

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

Sidebar

Related Questions

I'm currently developing an app which uses tabs and google map. What I want
I'm currently developing a Window app that uses CheckedListBoxes for certain aspects of the
I'm currently in the process of developing an app which has some very demanding
Am currently developing an iPad app which uses a UIScrollView. The UIScrollView is populated
I'm currently developing an app that uses Core Data. I'm using two stores/configurations, one
I'm currently developing a moderately large sized web app with ASP.NET 2.0 that uses
Im developing an app which uses the tcp connection. currently im communicating using hard
I am currently developing a web app that uses Google's Static Map API, in
I'm currently developing an app which uses GPS location on googleMaps view. I check
I am currently developing a web app that uses Jersey for REST. I use

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.