I am trying to create a notebook from my app. The problem is I cannot create the notebook.
EDAMNotebook *notebook = [[EDAMNotebook alloc]init];
notebook.name = @" List";
EDAMNote *createdNote = [noteStore createNotebook:authToken :notebook];
Xcode tells me that noteStore does not exist. I tried importing NoteStore.h but that file does not exist.
So can someone please provide me with some code on how to create a notebook as well as a note in iOS.
Thank you.
noteStoreis the name of an instance variable. If you haven’t created and initialized it, then it does not exist.What you probably want to do is call
[NoteStore createNotebook:authToken :notebook]. In the current version of the Evernote SDK, you would want to includeEvernoteNoteStore.hand add the following line of code beforenoteStoreis referenced:This will get the shared instance of the
EvernoteNoteStorewhich you can use to create a new notebook.