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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T09:52:18+00:00 2026-06-10T09:52:18+00:00

When a user taps a button on my interface, I want to create an

  • 0

When a user taps a button on my interface, I want to create an image of the screen using renderInContext:

However, the image is created with the button in it’s ‘pressed’ state – that is, the UIControlStateHighlighted image is used.

Is there some way to wait for this button to revert back to the UIControlStateNormal state before I create the image?

If not, the only other solution I can think of is recreating the view off screen, and imaging that.

P.S I would rather avoid using some arbitrary timer to wait a set interval.

  • 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-10T09:52:19+00:00Added an answer on June 10, 2026 at 9:52 am

    Create and replace your button with a subclassed button and trigger your renderInContext when the

    - (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent*)event 
    

    method is called. This method is called when the user lifts their finger off the button.

    Or set an action method of the existing button using this method of uibutton:

    -(void)addTarget:(id)target action:(SEL)action forControlEvents:(UIControlEvents)controlEvents
    

    with the control event set to UIControlEventTouchUpInside

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

Sidebar

Related Questions

I want to show different image for button after user taps that button ...
I want to develop an app for WP7 using C# where a user taps
I have an image, and there is a button. When user taps the button,
When the user taps a button, I want to move a sprite to the
Suppose user taps on a button and video begins to play. Now when video
I have a UITextView and I want have two buttons. When the user taps
i have just created a drum app. The user taps on the individual buttons
I have a view that sets its hidden when the user taps the main
I have an action which begins when the user taps a button on the
I am using the split view template to create a simple split view that

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.