How to get cellID in CTTelephonyNetworkInfo

how can I get cellId value in CTTelephonyNetworkInfo? Below is my code that i tried, but it still doesn’t working. Thank you in advance.

CTTelephonyNetworkInfo *telephonyInfo = [[CTTelephonyNetworkInfo alloc] init];
NSLog(@"Cell ID Value : %@", [telephonyInfo cellID]);

Here is CTTelephonyNetworkInfo header that I used as references :
https://github.com/nst/iOS-Runtime-Headers/blob/master/Frameworks/CoreTelephony.framework/CTTelephonyNetworkInfo.h


Source: ios

Leave a Reply