How would you go on creating a long video from images? It takes pretty long and the user will get bored to wait for it, so i'm thinking to generate the movie in background and notify the user after it finishes.
My app structure is like this, i have a UINavigationController that holds one controller with the simulated movie, just some images moving with CoreAnimation. Then i push a new controller that generates the movie. in controller2 i send request to controller1 to send me images with the frames to write on the movie (i generate images with CoreGraphics). This is almost blocking everything as it takes a lot of time and is continuous.
I read about background tasks and seems the only solution, but they do not last very long and might stop in the middle, generating 30sec of video takes about 6mins. I also can't declare my app as running in the background because it's not VoIP or other supported type.
Thanks for ideas.