where is the iPhone's phone number stored?

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

  1. macrumors regular

    Joined:
    Mar 13, 2008
    #1
    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. macrumors 603

    Cromulent

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

    Joined:
    Mar 13, 2008
    #3
    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. macrumors newbie

    Joined:
    Mar 24, 2008
    #4
    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?

    Thanks.
     
  5. macrumors member

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

Share This Page