Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/jsp/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Iphone 我能';t使用mailcore获取邮件列表_Iphone_Ios - Fatal编程技术网

Iphone 我能';t使用mailcore获取邮件列表

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

现在,我正在使用mailcore处理邮件客户端。每次都成功连接到imap服务器,但我无法获取收件箱列表。密钥代码

CTCoreFolder *inbox = [account folderWithPath:@"INBOX"];
   NSArray *messageList = [inbox  messagesFromSequenceNumber :1 to:0 withFetchAttributes:CTFetchAttrEnvelope];

NSLog(@"%d",[messageList count]);

每次输出为0;我这样做是错误的?

为什么不使用
通讯簿API

以下是一些答案: