Iphone 我能';t使用mailcore获取邮件列表
现在,我正在使用mailcore处理邮件客户端。每次都成功连接到imap服务器,但我无法获取收件箱列表。密钥代码Iphone 我能';t使用mailcore获取邮件列表,iphone,ios,Iphone,Ios,现在,我正在使用mailcore处理邮件客户端。每次都成功连接到imap服务器,但我无法获取收件箱列表。密钥代码 CTCoreFolder *inbox = [account folderWithPath:@"INBOX"]; NSArray *messageList = [inbox messagesFromSequenceNumber :1 to:0 withFetchAttributes:CTFetchAttrEnvelope]; NSLog(@"%d",[messageList
CTCoreFolder *inbox = [account folderWithPath:@"INBOX"];
NSArray *messageList = [inbox messagesFromSequenceNumber :1 to:0 withFetchAttributes:CTFetchAttrEnvelope];
NSLog(@"%d",[messageList count]);
每次输出为0;我这样做是错误的?为什么不使用
通讯簿API
以下是一些答案: