ios - Change zoomScale and contentOffset of UIScrollView in UIApplicationStateBackground state -


i know it's not recommended change view appearance when application moved background state, specific task cannot postpone activity , complete in couple of seconds after user hits home button.

that's do: i load webpage in uiwebview , after loading completion change contentoffset , zoomscale in order make specific screenshot of webpage. when app in active application state works fine.

now wanted add more multitasking capabilities. encapsulated above described webpage loading , rendering activity in protected background task (ios task completion), in order complete when user hits home button.

i have noticed page loading , rendering of webpage screenshot (with renderincontext: method) works fine in background, but seems webview (i.e. encapsulated uiscrollview instance) does not react on setcontentoffset: , setzoomscale: messages app in background..

so i'm asking if know alternatives change content offset / zoomscale? (modifications directly on calayer?) or method "force" scrollview perform content changes in background.

ps: on ios simulator works fine in application background state, on real devices not.

edit: have created simple demo project demonstrates issue. can download here (please read instructions in zip file): http://dl.dropbox.com/u/3556271/backgroundbugdemo.zip

i appreciate every hint or tip. thanks!


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -