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.
noteStore
is 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 include EvernoteNoteStore.h
and add the following line of code before noteStore
is referenced:
EvernoteNoteStore *noteStore = [EvernoteNoteStore noteStore];
This will get the shared instance of the EvernoteNoteStore
which you can use to create a new notebook.