ios - Checking a website for an update in Swift? -


i've been looking answer have been unable find one.

what's best way check website update (maybe using rss feed?) , show

    there has been update 

on app in swift if there has been update?

any appreciated,

cheers

i check last modified field in http header.

the steps follows :

  1. check current modified field webpage.
  2. store date variable or persist somewhere.
  3. at future date check webpage's last modified field once more.
  4. compare old value new value, if values aren't equal webpage has been modified.

    check out link : getting header response in swift find how view http header of given url in swift.


Comments

Popular posts from this blog

ios - Memory not freeing up after popping viewcontroller using ARC -

Django REST Framework perform_create: You cannot call `.save()` after accessing `serializer.data` -

Why does Go error when trying to marshal this JSON? -