cocoa touch - Auto fetch data from website iOS/iPhone Programming -


i wanted auto fetch data(gold price) website , update variable. have load whole .html file in string , find price? there other way? if updated variable, how save it, retains it's updated value(price)?

do have load whole .html file in string , find price?

yes

is there other way?

only if web site provides api gives access data need.

even if updated variable, how save it, retains it's updated value(price)?

a variable keep it's value until change it. if want preserve when user quits app, starts again same value, save in nsuserdefaults example.

do aware however, data copyright, can't scrape data website , publish app based on data without considering legal perspective. price data owned exchange , need license re-publish it.


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -