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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T13:41:20+00:00 2026-06-11T13:41:20+00:00

I am working on a notification system in my iPhone game and want an

  • 0

I am working on a notification system in my iPhone game and want an image to pop up on the screen and automatically fade after 2 seconds.

  1. User clicks a button that calls the method “popupImage”
  2. An image appears on the screen in a designated spot, it doesn’t need to fade in
  3. The image fades out by itself after being on the screen for 2 seconds.

Is there any way of doing this? Thanks ahead of time.

  • 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-11T13:41:20+00:00Added an answer on June 11, 2026 at 1:41 pm

    Use UIView dedicated methods for that.

    So imagine you already have your UIImageView ready, already created and added to the main view, but simply hidden. Your method simply need to make it visible, and start an animation 2 seconds later to fade it out, by animating its “alpha” property from 1.0 to 0.0 (during a 0.5s animation):

    -(IBAction)popupImage
    {
        imageView.hidden = NO;
        imageView.alpha = 1.0f;
        // Then fades it away after 2 seconds (the cross-fade animation will take 0.5s)
        [UIView animateWithDuration:0.5 delay:2.0 options:0 animations:^{
             // Animate the alpha value of your imageView from 1.0 to 0.0 here
             imageView.alpha = 0.0f;
         } completion:^(BOOL finished) {
             // Once the animation is completed and the alpha has gone to 0.0, hide the view for good
             imageView.hidden = YES;
         }];
    }
    

    Simple as that!

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

Sidebar

Related Questions

Possible Duplicate: javascript: pause setTimeout(); Im using jQuery and working on a notification system
I'm working on replacing a window.open() notification system and think to implement this with
I am working on an iPhone app with Apple Push Notification integration. I have
I want to show a notification after receiving a WAP push message in my
I am working on a notification system on my website for users. I have
I've built a notification system for an ASP.NET MVC3 site I've been working on
I have developed push notification system in android using c2dm, It's working fine but
I'm working on a messaging/notification system for our products. Basic requirements are: Fire and
I'm currently working on a system that allows users to reply to notification emails
I am working on adding a non-modal notification system to my application. The notifications

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.