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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T22:10:55+00:00 2026-05-26T22:10:55+00:00

I render n UIButtons into a ScrollView. I’ve subclassed the UIButton to handle long

  • 0

I render “n” UIButtons into a ScrollView. I’ve subclassed the UIButton to handle long taps.

The UIButtons are of type “custom” and display only a 150px x 150 PC image from Documents Directory.

If the user taps longer on one of the UIButtons a red cross comes up on the upper right corner to allow him to delete the selected UIButton from view.

And here is my problem:

I need to animate the deletion a bit. What I want is to fade out the selected UIButton and move the UIbuttons on the right of the deleted UIbutton one position to the left (animated).

I worked through several animation tutorials on the web, but i don’t know how to fade in/out a UIButton or animate them in this scenario.

  • 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-26T22:10:55+00:00Added an answer on May 26, 2026 at 10:10 pm

    Just an example of how to fade out a control:

    [UIView beginAnimations:nil context:NULL];
    [UIView setAnimationDuration: 0.3];
    
    [yourButton setAlpha:.0];
    
    [UIView commitAnimations];
    

    Change the frame of the other buttons to the new location before commiting the animation.
    Hope it helps.

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

Sidebar

Related Questions

I am trying to render a user control into a string. The application is
Is it possible to render a template into a string? I would like to
I'm trying to render only a flash message without a redirect or render after
I'm trying to create an image for a custom style UIButton using an image
I render an instance of a model into a partial with the following code
I render some new content with .html() after ajax call into my site. $.getJSON(scriptURL,
I am trying to render the magento contact form into a .phtml file, but
render @some_object will render Rails.root/app/views/some_objects/_some_object.html.erb Now I want to handle which partial will be
render :json => { playlist => playlist_description, songs => @playlist.songs.as_json(:include => {:playlist_songs => {:only
I render text with a custom table cell renderer and I want to trim

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.