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 :

Source: ios

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.