ios - how to save dictionary to cloudkit -


i'm trying create database sports games , instance, in soccer games save not how many goals scored, time's in scored. easiest way of course use key value pairs i'm using cloudkit , don't see way save dictionary. possible this?

i think solution give flexability in app create other recordtype. besides recordtype 'games' have recordtype 'goals'. in 'goals' recordtype create ckreference field points 'games' belongs to. able create query 'goals' recordtype reference points specific game. calculate score based on results of query.

one other solution easier maintain convert dictionary string , put entire dictionary in 1 text field. instance convert json string nsjsonserialization.


Comments

Popular posts from this blog

jquery - How do you format the date used in the popover widget title of FullCalendar? -

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -