Take the 2-minute tour ×

I have a strange issue. My app gets killed if my UI thread is blocked for long time ( say 10s). I want to repeatedly take screenshots after updating view in a loop. This is a time consuming process. But my app gets killed and no memory warning is received. My question is will my app get terminated if UI Thread is blocked for long time?

share|improve this question
no but if you have a long task you its better to make it in separate thread –  touti Oct 22 '12 at 8:53
add comment

1 Answer

This is normal. Instead of letting apps freeze, iOS watches each app if they are taking a long time in the UI thread. Is there any reason you have to take the screenshots in a single run loop? Why not just setup a CADisplayLink callback and take just one screenshot every execution?

share|improve this answer
I want to take screenshots for sharing it via email. I want to take around 20 screenshots of my scroll view after updating it each time. Then these images are attached to email. –  gladiator2345 Oct 22 '12 at 9:00
I found the problem, It is because the images are being cached. But i cannot see allocation while profiling nor did i receive any memory warning. Any idea how to solve it? Organizer shows my app is getting jettisoned <51b0baeda1f033328ef30e7512de299c> 28670 (jettisoned) (active) –  gladiator2345 Oct 22 '12 at 9:13
add comment

Your Answer


