Is it possible in objective C that we can take the screen shot of screen and stored this image in UIImage.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
You need to create a bitmap context of the size of your screen and use
to copy your view in it. Once this is done, you can use
to create a CGImage from your context.
Elaboration :
Note that if you run your code in response to a click on a UIButton, your image will shows that button pressed.