Hi All (again),
Thanks for the previous help, this pointed me in the correct direction. I have it sort of working, but still coming up against a problem. Here is what I have at the moment:
Code:
NSString *url =@"http://www.WEBPAGE.html";
NSString *escapedURL = [url stringByAddingPercentEscapesUsingEncoding:NSASCIIStringEncoding];
NSString *webpageString = [NSString stringWithContentsOfURL:[NSURL URLWithString:escapedURL]];
NSLog(@"webpage contents: %@", webpageString);
The problem is that I have 1 word/item in the html page, and I want to use this and transfer it to a 'String' variable.
Now when I do this, it seems to pass a value which looks the same as the HTML variable I am wanting (I can check throughout with NSLogs) BUT it doesn't seem to recognise it when I go to see if it compares with abnother string variable.
Hope this makes sense.
Quote:
Originally Posted by screwtape
|