Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Are you receiving the response from the web server in JSON? If so, the fact that the server is using an SQL database is immaterial. What you need to know is how to parse JSON for inclusion in a core data store. Cocoa is my Girlfriend has a pretty good tutorial up.</p> <ul> <li><a href="http://www.cimgf.com/2011/06/02/saving-json-to-core-data/" rel="nofollow">Part 1</a></li> <li><a href="http://www.cimgf.com/2012/01/11/handling-incoming-json-redux/" rel="nofollow">Part 2</a></li> </ul> <hr> <p>To answer your comment, here's what I've done.</p> <ol> <li>Display a login screen. The login credentials should be stored in the keychain for security. I've used <a href="https://github.com/samsoffes/sskeychain" rel="nofollow">SSKeychain</a> for this.</li> <li>To handle sending and receiving data from a web request your best option is to use a pre-built library. I've always used <a href="http://allseeing-i.com/ASIHTTPRequest/" rel="nofollow">ASIHTTPRequest</a>, but since it is no longer under active development, you should probably look around a bit before you commit to anything. I'm sure there are nicer and cleaner libraries out there.</li> <li>You need to parse the JSON responses. I'm a fan of <a href="https://github.com/johnezang/JSONKit" rel="nofollow">JSONKit</a>. It's very fast, very easy to use, very robust.</li> </ol> <p>Pulling data out of the core data store and displaying it in the interface will be no problem for you. If you create a new project in Xcode most of the setup will be done for you.</p> <p>Now, there are a lot of projects out there that attempt to combine web requests, json parsing and core data loading into one framework. I've tried to use a few of these and haven't had much luck. The ones I've tried haven't been robust and very difficult to debug. Setting up your own request/parse/load code is not difficult at all, just a bit time consuming. </p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload