Adding values to coredata in swift share extension

自作多情 提交于 2020-01-03 02:45:07

问题


I need to insert and fetch data from coredata in swift share extension. How can I do this

class ShareViewController: SLComposeServiceViewController,NetworkSelectionViewControllerDelegate, PublishSelectionViewControllerDelegate,ApproverSelectionViewControllerDelegate{

    var selectedNetworkName = "Default"
    var selectedPublishName = "Select"
    var selectedApproverName = "Select"

    override func isContentValid() -> Bool {
        // Do validation of contentText and/or NSExtensionContext attachments here



        return true
    }

来源:https://stackoverflow.com/questions/34605036/adding-values-to-coredata-in-swift-share-extension

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