Slide 1

Slide 1 text

CloudKit First Take

Slide 2

Slide 2 text

 james sa Speed 3D Inc. 3D @JAMEX

Slide 3

Slide 3 text

The problem The problem I want to solve is in our app (3DPIPO), we have right now 500MB+ 3D model assets. One 3D model takes from 5MB to 10MB based on the texture and resolution of the model. Each Model is around 5~10MB.

Slide 4

Slide 4 text

In first version Cache is good

Slide 5

Slide 5 text

The Podcast Everyone needs some motiviation. After hearing Ray Wanderlich's podcast, I tried CloudKit this morning using defaut sample. As version 2.0 (2014-0-13) https://developer.apple.com/library/ prerelease/ios/samplecode/CloudAtlas/ Introduction/Intro.html#//apple_ref/doc/ uid/TP40014599

Slide 6

Slide 6 text

The Setup I can set up with only a few catch like creating application specific Record Type like ReferenceItems and ReferenceSubitems. Looks like other Record Type are created automatically but not these two. ReferenceItems has attribute name as String ReferenceSubitem has attribute parent as Reference, and name as String

Slide 7

Slide 7 text

The Catch For Photos and Users record types, you have to create a bogy attribute to make the queriable in PUBLIC DATA.

Slide 8

Slide 8 text

The result In the end my iCloud dashboard looks like Items (2 attributes, location as Location, and name as String) Photos (2 attributes, photo as Asset, bogy as Queriable) User (1 attributes, boggy as Queriable) Now you can head to User Records and Default Zone in PUBLIC DATA The rest of the problem is data versioning.

Slide 9

Slide 9 text

No content

Slide 10

Slide 10 text

No content

Slide 11

Slide 11 text

Tips for Defining Your App's Record Types » Organize your records around a central record type. » Use references to create strong relationships between records. » Include version information in your records. » Handle missing keys gracefully in your code. » Avoid complex graphs of records.

Slide 12

Slide 12 text

Con iOS8 only No Serverside scripting Pro it's just a beginning

Slide 13

Slide 13 text

Reference Designing for CloudKit The problem now is the Data Transfer quota. The 25MB/day for assets worries me. Ray Wenderlich's Beginning CloudKit CKAssets Sample Code Cloud Captions

Slide 14

Slide 14 text

One More Thing We are recruting :)