Tuesday, 23 March 2010

need to check remote server at a certian time


i closing in on end of app traveler show www.syvtraveler.com

have noticed when closes app while testing on phone not quit out of app. when open again not execute delegate methods - (void)viewwillappear:(bool)animated, seems keep running left off.

right trying figure out how have app update after 3pm instance. if restaurant wants change special running night upload new image remote site. have method checks modification date , time of remote file , compares once stored locally, downloads new files if there change. hard part done!

right have method attached uibutton , when pressed checks remote files using nsthread runs in background. seems pointless check whole site every time press button.

can recommend idea, or push me in right direction can schedule this? or there delegate method not know executed when app wakes sleep, guess call sleep since not full launch of app again, otherwise check current time method above.

can coding need method executes automatically when app wakes again, or idea?

thanks!
 

take @ uiapplicationdelegate protocol reference. there number of delegate methods monitoring application's state.
 


Forums iPhone, iPad, and iPod Touch iOS Programming


  • iPhone
  • Mac OS & System Software
  • iPad
  • Apple Watch
  • Notebooks
  • iTunes
  • Apple ID
  • iCloud
  • Desktop Computers
  • Apple Music
  • Professional Applications
  • iPod
  • iWork
  • Apple TV
  • iLife
  • Wireless

No comments:

Post a Comment