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
Post a Comment