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?
using the following as the script: