Hi there,
I try to fetch a responseString from my request and I just can't get it working
well… Everything is good but my request is send in asynchronous mode and I used
block for fetching my string. This method doesn't working well so I ask you if
you can help me more ;)
Here's the code :
__block ASIFormDataRequest *request = [ASIFormDataRequest
requestWithURL:[NSURL
URLWithString:@"http://accident.monautosurlenet.fr/Handlers/IOS/Upload.ashx"]];
[request setDelegate:self];
[request setCompletionBlock:^{
NSString *string = [request responseString];
NSLog(@"%@", string);
}];
//adding my data
[request startAsynchronous];
Do you have an idea ?
Best regards,
Vavelin Kévin
Twitter | Blog | LinkedIn
Entrepreneur
Developer OS X / iOS
_______________________________________________
Cocoa-dev mailing list ([email protected])
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]