【问题标题】:How can I untag from a note in Evernote Swift SDK?如何从 Evernote Swift SDK 中的笔记中取消标记?
【发布时间】:2017-09-09 13:16:56
【问题描述】:

我想使用 Evernote swift SDK 从笔记中删除所有标签。这是我的代码,但我不能用这个删除它们,有什么办法吗?

ENSession.shared.download(noteRef!, progress: nil) { (note: ENNote?, error: Error?) in
    if error == nil {

        note?.tagNames = [String]()

        ENSession.shared.upload(note!, policy: .replace, to: nil, orReplace: noteRef, progress: nil, completion: { (noteRef: ENNoteRef?, error: Error?) in
            if error == nil {
                print("Tag Deleted")
            }
        })
    }
}

【问题讨论】:

    标签: swift evernote evernote-app-notebook


    【解决方案1】:

    你可以试试这个吗?

    note?.tagGuids = [String]()
    

    【讨论】:

      猜你喜欢
      • 2017-05-19
      • 1970-01-01
      • 2011-09-21
      • 2017-10-31
      • 1970-01-01
      • 2014-06-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多