mysql - CloudKit for my iOS game -


i'm creating ios game users can create record , store on server(currently it's own server simple sql db). next, can records id of object stored on server. current database fields:

  • id unique auto-generated
  • objectdata: data of user created object. it's base64 string, typical size varies 50kb 3mb.
  • name: short name, user specified, string.
  • img: png image file shows preview of user created object. typical size 100kb.

after record created: can't deleted or modified in way. record can retrieved device game installed - id. if user tries save duplicate record - server returns id of stored record. duplicate determined comparing objectdata value before writing db.

my questions are:

  1. is such behavior can done in cloudkit?

  2. where can find example tutorial(in objective c) shows me hot work cloudkit , store records described? or maybe can code snippets?

probably, duplicates can't checked, it's okay... main goal - implement reading , writing cloudkit.

also, there limits of size? i'm worry objectdata fileld...

yes, done using cloudkit. think should store objectdata in ckasset field in cloudkit. there no size limitations @ all. store img in ckasset.

the total size of record’s data limited 1 mb though assets not count against limit.

when start using cloudkit app, 5gb of data free plus 100mb per user of app.

apple has nice demo app show of requested functionality. have @ cloudkit atlas demo at: https://developer.apple.com/wwdc/resources/sample-code/

if planning use swift programming language (which can advice) have at: https://github.com/evermeer/evcloudkitdao


Comments

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -