ios - Afnetworking Json Login with CoreData -


i'm trying work webservice.and i'm posting username , password afnetworking.i'm getting output.it's ok.but need use coredata.and how can keep session in application.

what should in case.

get: {"result":"active","id":"11","name":"john app","statu":"customer","token":"ve0hruf33fv6y7liftjyjvfftmwarn"} 

  1. you need parse response nsdictionary using nsjsonserialization
  2. than can extract values using key-value access in nsdictionary
  3. setup , create core data model (.xcdatamodel file)
  4. you can use tools magicalrecord simplify life core data
  5. write data base , save object.