//我正在修改此短信代码以使用madrid
CKSMSService *smsService = [CKSMSService sharedSMSService];
CKConversationList *conversationList = nil;
conversationList = [CKConversationList sharedConversationList];
CKSMSEntity *ckEntity = [smsService copyEntityForAddressString:@\"555-555-5555\"];
CKConversation *conversation = [conversationList conversationForRecipients:[NSArray arrayWithObject:ckEntity] create:TRUE service:smsService];
NSString *groupID = [conversation groupID];
CKSMSMessage *ckMsg = [smsService _newSMSMessageWithText:msg forConversation:conversation];
[smsService sendMessage:ckMsg];
[ckMsg release];
//but CKMadridEntity kept returning nil (psuedo code)
CKMadridService *madridService = [CKMadridService sharedMadridService];
CKConversationList *conversationList = nil;
conversationList = [CKConversationList sharedConversationList];
CKMadridEntity *ckEntity = [madridService copyEntityForAddressString:@\"555-555-5555\"]; //tried @\"whoever@gmail.com\" too
**I am using xcode5.1, private api for ios5.1.
我想使用带有imessage的私有api发送短信,在chatkit.framework代码中粘贴私有api。 所以我该怎么做?请帮帮我!! **