where is the iPhone's phone number stored?

Discussion in 'Mac Programming' started by drivefast, Mar 16, 2008.

  1. drivefast macrumors regular

    Mar 13, 2008
    hi everybody,

    does any one of you know where the iphone's phone number is stored? it shows up on a grayed bar on top of the phonebook page, but i had no luck finding it inside the address book database. i doubt it's accessible from the SDK as it is now, but i can probably hack it out from somewhere. maybe the mobile phone or sms applications settings store it?... thanks.
  2. Cromulent macrumors 603


    Oct 2, 2006
    The Land of Hope and Glory
    It is stored in the SIM card.
  3. drivefast thread starter macrumors regular

    Mar 13, 2008
    ew... thanks, this is definitely the best place to get it from. but whatever method i use to get the number for now, it will eventually have to be ported into the official sdk. i've a feeling apple is not going to like apps looking directly into the sim. somehow i would think the phone number must also be somewhere in a file...?
  4. mzichao macrumors newbie

    Mar 24, 2008
    I'm interested as well!

    I can't find any iPhone API to retrieve iPhone phone number neither. Anybody knows a way to get the phone number?

  5. iphoneGuy macrumors member

    Oct 26, 2007
    [[NSLocation alloc] initWithCity: Chicago]
    There is none yet.. I would not hold your breath...

Share This Page