IOS Coredata compatible with both IOS 9 and ios 10

孤街醉人 提交于 2020-01-02 09:59:52

问题


Hi I'm developing an app to work with both IOS 10 and 9 (xcode 8). What is the proper way to create new entity object?

new IOS 10 has this code

var newEvent = Event(context: context)

How do we make this code work with both IOS 10 and 9?

I'm testing using Mater-Detail template with coredata xcode8

Any additional change should we make to ensure coredata work with both IOS 9 and 10? any help is much appreciate. Thanks

来源:https://stackoverflow.com/questions/39687249/ios-coredata-compatible-with-both-ios-9-and-ios-10

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!