Using Core Data with watchOS 2.0

后端 未结 2 501
再見小時候
再見小時候 2020-12-05 09:48

I made an iOS/Apple Watch app with WatchKit 1.0 that uses a shared group container and a custom framework to access the same Core Data store. Now, in the transition guide fo

2条回答
  •  -上瘾入骨i
    2020-12-05 10:35

    I recommend setting up sync using the user info background transfer to mirror each database operation in both directions (if required) after transferring the store on first run.

    The WWDC Session 713 - Introducing Watch Connectivity covers the mechanisms required. Nice API they've put together.

提交回复
热议问题