1

有人可以帮我调用setTo函数CTCoreMessage吗?我NSSet作为参数发送,但它给出了运行时错误。我的代码是:

CTCoreAddress *to=[CTCoreAddress alloc];
[to setEmail:@"someone@someone.com"];
NSSet *set=[[NSSet alloc]initWithObjects:to,nil];
CTCoreMessage *message=[CTCoreMessage alloc];
[message setTo:set];

当我写下这行时,一切都很完美

 [message setTo:set];

生成以下运行时错误:

err =  mailimf_address_list_add_mb(imfList, strdup(addressName), strdup(addressEmail));

Thread1:程序收到信号“EXC_BAD_ACCESS”

4

0 回答 0