ios - How to get cellID in CTTelephonyNetworkInfo -


how can cellid value in cttelephonynetworkinfo? below code tried, still doesn't working.

cttelephonynetworkinfo *telephonyinfo = [[cttelephonynetworkinfo alloc] init]; nslog(@"cell id value : %@", [telephonyinfo cellid]); 

here cttelephonynetworkinfo header used references : https://github.com/nst/ios-runtime-headers/blob/master/frameworks/coretelephony.framework/cttelephonynetworkinfo.h

i did not plan submit app appstore. i'm building normal app not jailbreak app, want value using private api. thank in advance.

if work on jailbreak phone ,maybe can use below entitlement:

<key>com.apple.commcenter.fine-grained</key> <array>     <string>spi</string> </array> 

Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -