Detecting whether the iPhone is SIM-free programmatically

Hi,

I'm developing a feature for a carrier company, I have to find out whether the iPhone is sim-free (unlocked). How can it be done programmatically? I tried to look at the CTCarrier class but it seems to be deprecated and we cannot count on the information it provides. What would be the right APIs/Classes to use for it? Thanks in advance

Replies

I have to find out whether the iPhone is sim-free (unlocked).

The iOS SDK has no API for this. I recommend that you escalate this via your carrier’s contact at Apple.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"