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 4172300
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T00:32:46+00:00 2026-05-21T00:32:46+00:00

Is there anyway to load a UILabel with text from a webpage? If I

  • 0

Is there anyway to load a UILabel with text from a webpage? If I define a webpage is there anyway I can take text off of the page?

Like if in the source of the page says “9.5000/9.5009” can I take the “9.5000/9.5009” and make it the text of a label, even if that number changes is there a way to load it by using the declared “Rate”? Or am I wrong about it being declared as “Rate”.

Could I use code like:

#define kLatestKivaLoansURL @"http://www.roblox.com/Marketplace/TradeCurrency.aspx"

NSString *responseString = [[NSString alloc] initWithData:responseData encoding:NSUTF8StringEncoding];
NSArray* latestLoans = [(NSDictionary*)[responseString JSONValue] objectForKey:@"Rate"];
NSDictionary* loan = [latestLoans objectAtIndex:0];
NSString* rate = [loan objectForKey:@"Rate"];
label.text = [NSString stringWithFormat:@"%i",rate];

Is there any way to do this without a page outputting JSON?

  • 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-21T00:32:47+00:00Added an answer on May 21, 2026 at 12:32 am
    NSURL *url = [NSURL URLWithString:@"http://www.domain.com/rateScript.php"];
    NSString *response = [[NSString alloc] initWithContentsOfURL:url];
    label.text=response;
    [response release];
    

    using the following as the script:

    <?php
    $ratefile=file_get_contents("http://www.roblox.com/Marketplace/TradeCurrency.aspx");
    $position=0;
    $position=strpos($ratefile, '"Rate"',$position)+7;
    $start=strpos($ratefile, '"Rate"',$position)+7;
    $end=strpos($ratefile, '<',$start+1);
    echo substr($ratefile,$start,$end-$start);
    ?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there anyway to make a div box shake on page load? Like maybe
Is there anyway i can fool the Jquery .load Same origin policy? The closest
is there anyway to make the app load the first page every time it's
is there anyway to load other JS files from within a single JS file.
I am working with a UIWebview, is there anyway I can just load just
Is there anyway to load jQuery-UI theme from CDN, but with local fallback? Similar
Is there anyway to load the drop down menu of an html from another
Is there any way that I can use C# to load and then render
Is there anyway that I can have tabs on an iPhone hide if there
Is there anyway i can calculate the sum of the square of objects in

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.