ios - How to get data from server and install in sqlite -
now have server many tables. in xcode, use sqlite store data 1 table of server, should connect , data server store in slite db ?
you should have server side scripts ready web services either rest or soap webservices.
then, you'll need in iphone app use nsurlconnection fetch url. nsurlconnection nice, asynchronous way of downloading files remote locations.
after that, it's simple matter of parsing xml or json can using nsxmlparser
http://wiki.cs.unh.edu/wiki/index.php/parsing_xml_data_with_nsxmlparser
nsjsonserialization
http://www.raywenderlich.com/5492/working-with-json-in-ios-5
or third party api's
once have sorted out required data can save in sqlite db in device
this link should idea sqlite
http://www.raywenderlich.com/913/sqlite-101-for-iphone-developers-making-our-app
hope helps :)
Comments
Post a Comment