Created
September 1, 2013 02:01
-
-
Save katsuhide/6401846 to your computer and use it in GitHub Desktop.
Evernoteのノートを更新する
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// EDAMNoteの作成 | |
NSMutableDictionary *condition = [NSMutableDictionary dictionary]; | |
[condition setObject:@"sample note2" forKey:@"noteTitle"]; | |
EDAMNote *note = [self createEDAMNote:condition]; | |
// guidの設定 | |
NSString *guid = [[[metadata notes] objectAtIndex:0] guid]; | |
note.guid = guid; | |
// Update Note | |
[[EvernoteNoteStore noteStore] updateNote:note success:^(EDAMNote *note) { | |
NSLog(@"====Updating Note has been succeeded.===="); | |
NSLog(@"%@", note); | |
} failure:^(NSError *error) { | |
NSLog(@"Updating Note has been failured."); | |
}]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment