[英]Trying to add a text string to Evernote from app using Evernote SDK
试图从UITextView中获取文本到Evernote中的注释。 Evernote SDK安装授权并链接确定。
由于某种原因,字符串noteContent
只是显示为; layer = ; contentOffset: {0, 0}>
; layer = ; contentOffset: {0, 0}>
在Evernote中显示时; layer = ; contentOffset: {0, 0}>
if([[EvernoteSession sharedSession] isEvernoteInstalled]) {
//tags
NSMutableArray *tagNames = [NSMutableArray arrayWithObjects:@"iCertifi",@"electrical",@"certificates", nil];
NSString *noteContent = [NSString stringWithFormat:@"%@",self.note.text];
//Note
EDAMNote* note = [[EDAMNote alloc] initWithGuid:nil title:@"Test Note - Evernote SDK" content:noteContent contentHash:nil contentLength:0 created:0 updated:0 deleted:0 active:YES updateSequenceNum:0 notebookGuid:nil tagGuids:nil resources:nil attributes:nil tagNames:tagNames];
[[EvernoteSession sharedSession] setDelegate:self];
[[EvernoteNoteStore noteStore] saveNewNoteToEvernoteApp:note withType:@"text/html"];
}
好解决这个
需要设置
[[EvernoteNoteStore noteStore] saveNewNoteToEvernoteApp:note withType:@"text/html"];
至
[[EvernoteNoteStore noteStore] saveNewNoteToEvernoteApp:note withType:@"text/plain"];
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.