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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T13:50:28+00:00 2026-05-24T13:50:28+00:00

This is something that is stumping me; I have a simple UIButton with the

  • 0

This is something that is stumping me; I have a simple UIButton with the following PNG as it’s background:

Button

I’m using an iOS 4 block animation, and all I’m doing is animating it’s alpha property from 0.0 to 1.0. However, while the animation is in progress, the UIButton gets bright white, before finally settling to look like the above image when the property reaches 1.0.

I’m pretty stumped – if, for example, I open that image in Paint.NET and slide the image’s opacity from 0 to 255, I see a nice fade-in effect – which is exactly what I’m going for. But when I animate an opacity change in iOS, the button gets bright white during the middle part of the animation.

If I change the animation’s duration to something extended, like 5 seconds, the effect is even more prominent. Any ideas?

Edit: I am using Xcode 4.1, and running iOS 4.3.3 (first gen iPad).

  • 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-24T13:50:29+00:00Added an answer on May 24, 2026 at 1:50 pm

    It turns out, after much consideration, that the issue was my UIButton was a Round Rect button; the type needed to be changed to Custom. Even though the background images I set for my button worked when the type was Round Rect, applying an alpha animation to the button still caused the default white Round Rect style to appear for the duration of the animation. That is what my eyes interpreted as “bright white” during the animation – it had nothing to do with my PNG background, and everything to do with the underlying type of the button I was using.

    Problem solved. Moral of the story? Change your UIButton type to Custom if you’re going to animate the button while using your own background images.

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

Sidebar

Related Questions

This is something that I have never fully grasped in .NET as to the
This is something that I have always wondered about, but never bothered to profile.
This is something that I solved using reflection, but would like to see how
I am wrinting a shell script and have a variable like this: something-that-is-hyphenated .
Ok this might be simple or just not possible. Probably it's something that is
This is something that I think would be very useful. Basically, I'd like there
This is something that I always find a bit hard to explain to others:
This is something that comes up so often I almost stopped thinking about it
This is something that made me doubt for a while so I thought it
This is something that's been bugging me for many years: why most online services

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.