Before iOS5 I could test to see what URL I was getting a response from my code looked like this:
- (void)connectionDidFinishLoading:(NSURLConnection *)connection
{
returnString = [[[NSMutableString alloc] initWithData:responseData encoding: NSUTF8StringEncoding] autorelease];
NSString * currentParseString = [NSString stringWithFormat:@"%@",connection];
NSLog(@"Currently Parsing: %@",currentParseString);
}
my log would print out “Currently Parsing: http://www.myinfo.com/parser....“
Which I could then use to test and send into different IF statements. My problem now is, in iOS5 the connection is no longer printing as a URL, it is printing as a block of memory <NSURLConnection: 0x6a6b6c0> How could I get it to print out as a URL again so I dont have to rewrite my IF statements?
I did something like this :