All that found sensible in Google is:
NSURL *urlString = [NSURL URLWithString: @"http://hashcode.ru/"]; NSURLRequest *urlRequest = [NSURLRequest requestWithURL: urlString cachePolicy: NSURLRequestReturnCacheDataElseLoad timeoutInterval: 10]; NSURLResponse *response = nil; NSError *error = nil; NSData *urlData = [NSURLConnection sendSynchronousRequest :urlRequest returningResponse :&response error :&error]; NSString *result= [[NSString alloc] initWithData :urlData encoding: NSASCIIStringEncoding];
As I understand it, this is getting the code itself ... but I need to pull out the date, for example, " <dat>19.12.2013</dat>
", parsing from <dat>
and to <
insert in the label
. Tell me the code ^^: ***