EvernoteNoteStore *noteStore = [EvernoteNoteStore noteStore];
EDAMNote *note = [[EDAMNote alloc] init];
[note setTitle:@"Test Note from EvernoteCounter for iPhone"];
[note setContent:[ [NSString alloc] initWithFormat:@"<en-note>%@</en-note>",@"tete"];
[noteStore createNote:(note) success:^(EDAMNote *note) {
NSLog(@"Received note guid: %@", [note guid]);
}failure:^(NSError *error) {
NSLog(@"Create note failed: %@", error);
}];
我用这个代码通过evernote激活了createNote。但是 createNote 不返回任何值 - 它被困在称为 async 的内部 api 函数之一中。有没有人尝试使用 iOS 的 SDK 上的 API 创建新笔记,并且实际上在他们的 Evernote 帐户中获得了笔记?