Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6217607
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T07:27:21+00:00 2026-05-24T07:27:21+00:00

How do I link live currency exchange rates to my iPhone app? First, anyone

  • 0

How do I link live currency exchange rates to my iPhone app? First, anyone know any sites where I can get the exchange rates? And second, how do I link that to my app? I want to do what this app does. http://the-dream.co.uk/currencee/

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T07:27:22+00:00Added an answer on May 24, 2026 at 7:27 am

    Here is a blog post about this, however to recap, if you use TBXML you can do it with the methods below.

    They do the following:

    1. Assume you have made a mutable dictionary object as a class property called exchangeRates
    2. Set’s EUR as the base rate (value of 1.0)
    3. Call the European Central Bank’s exchange rate XML feed and parses it.
    4. After you’ve called the loadExchangeRates() method you can obtain a specific exchange rate by doing:

      NSDecimalNumber *rate = [NSDecimalNumber decimalNumberWithString:[self.exchangeRates objectForKey:@"USD"]];  
      

    Here are the methods:

    - (void)loadExchangeRates {
    
    // initialize rate array
    exchangeRates = [[NSMutableDictionary alloc] init];
    
    // Load and parse the rates.xml file
    TBXML * tbxml = [[TBXML tbxmlWithURL:[NSURL URLWithString:@"http://www.ecb.int/stats/eurofxref/eurofxref-daily.xml"]] retain];
    
    // If TBXML found a root node, process element and iterate all children
    if (tbxml.rootXMLElement)
        [self traverseElement:tbxml.rootXMLElement];
    
    // add EUR to rate table
    [exchangeRates setObject:@"1.0" forKey:@"EUR"];
    
    // release resources
    [tbxml release];    }
    
    
    - (void) traverseElement:(TBXMLElement *)element {
    
        do {
            // Display the name of the element
            //NSLog(@"%@",[TBXML elementName:element]);
    
            // Obtain first attribute from element
            TBXMLAttribute * attribute = element->firstAttribute;
    
            // if attribute is valid
            NSString *currencyName;
            while (attribute) {
                /* Display name and value of attribute to the log window
                NSLog(@"%@->%@ = %@",
                      [TBXML elementName:element],
                      [TBXML attributeName:attribute],
                      [TBXML attributeValue:attribute]);
                */
                // store currency
                if ([[TBXML attributeName:attribute] isEqualToString: @"currency"]) {
                    currencyName = [TBXML attributeValue:attribute];
                }else if ([[TBXML attributeName:attribute] isEqualToString: @"rate"]) {
                    // store currency and rate in dictionary
                    [exchangeRates setObject:[TBXML attributeValue:attribute] forKey:currencyName];
                }
                // Obtain the next attribute
                attribute = attribute->next;
            }
    
            // if the element has child elements, process them
            if (element->firstChild)
                [self traverseElement:element->firstChild];
    
            // Obtain next sibling element
        } while ((element = element->nextSibling));
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

here is the live link http://mrgsp.md:8080/icms/account/signin I get a scrollbar and I don't understand
I have the following bit of code, simply: $(function() { $('a.add-photos-link').live('click', function(e) { $(this).colorbox({
Link to the site in question . You can look at the source for
This link describes an exploit into my app using fckEditor: http://knitinr.blogspot.com/2008/07/script-exploit-via-fckeditor.html How do I
I am creating a Wordpress blog (no live link yet because it's still at
I know this kind of thing cannot be adequately answered without a link to
I'm implementing Simplemodal in an application of mine using this code: $(.dialog-link).live('click', function(e) {
I have this code in index.html file: $(function(){ $('a#link').live('click', function(e){ $(div#element).load(file.html); }); }); In
I try to debug a IE8 bug and I'm pretty stuck with it $('.help-link').live('click',
I have created a way to test if a link to a live stream

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.