在IOS 8.3中检索来电显示

时间:2015-07-14 10:13:30

标签: ios iphone telephony

根据iOS Caller ID Retrieve,我已经完成了检索这样的来电者信息:

    NSDictionary *info = (__bridge NSDictionary *)userInfo;
    CTCall *call = (CTCall *)[info objectForKey:@"kCTCall"];
    NSString *caller = CTCallCopyAddress(NULL, call);

但在IOS 8.3之后,CTCall没有返回地址。 在IOS 8.3之前,我得到了CTCall实例:

{
    kCTCall = "<CTCall 0x17eb85e0 [0x38cb0700]>{status = 4, type = 0x1, subtype = 0x1, uuid = 0x17e89d90 [C5B34D1D-74B8-490A-8252-C9435A418290], address = 0x17e7f9f0, externalID = -1, start = 2.22507e-308, session start = 4.58346e+08, end = 2.22507e-308}";
kCTCallStatus = 4;
}

IOS 8.3我得到了这样的实例:

{
     kCTCall = "<CTCall 0x16d85970 [0x3560c8b0]>{status = 4, type = 0x1, subtype = 0x1, uuid = 0x16d88f90 [F60C14DC-5288-41C1-A96F-C06F08E7757E], address = 0x0, externalID = -1, start = 2.22507e-308, session start = 4.58317e+08, end = 2.22507e-308}";
kCTCallStatus = 4;
}

CTCALL的地址是0.有什么建议吗?非常感谢。

0 个答案:

没有答案