Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • thanks! could I store it in NSuserdefaults? NSString *valueToSave = address; [[NSUserDefaults standardUserDefaults] setObject:valueToSave forKey:@"address"];
    – Brandon
    Commented Dec 17, 2012 at 8:07
  • sure, once you have it you can do whatever you want with the address. You just have to find a way to tell the rest of your app that you received the address. Keep in mind that you don't know how long it will take until the address is found. It could be within a couple of milliseconds, or take half a minute. Commented Dec 17, 2012 at 8:09
  • Oh ok got it. Do I need to tell the appDelegate something for it to run this bit of code? or will it run automatically?
    – Brandon
    Commented Dec 17, 2012 at 8:10
  • If you want to use the notification pattern you have to register for the notification in your AppDelegate. Please read Notification Programming Topics Commented Dec 17, 2012 at 8:14