this is my question: I make a POST requesto to www.aaa.com :
这是我的问题:我向www.aaa.com发出POST请求:
NSString *post =[[NSString alloc] initWithFormat:@" bll bla ",importo];
NSURL *url=[NSURL URLWithString:@"http://www.aaa.com"];
NSLog(@"POST: %@",post);
NSData *postData = [post dataUsingEncoding:NSASCIIStringEncoding
allowLossyConversion:YES];
... bla bla bla....
[request setHTTPBody:postData];
[request setValue:userAgent forHTTPHeaderField:@"User-Agent"];
httpResponse = [[NSMutableString alloc] init];
NSURLConnection *connection = [[NSURLConnection alloc]
initWithRequest:request
delegate:self];
[connection release];
i receive a response and all is ok! but in
我收到回复,一切都好!但在
- (void) connectionDidFinishLoading:(NSURLConnection *)connection
i want open the response page in mobile safari, not in a uiwebview, probably i must change approach, anyone have suggestion?
我想在移动野生动物园中打开响应页面,而不是在uiwebview中,可能我必须改变方法,任何人都有建议吗?
1 个解决方案
#1
0
If you want to open URL in Safari, call:
如果要在Safari中打开URL,请致电:
[[UIApplication sharedApplication] openURL: yourUrl];
#1
0
If you want to open URL in Safari, call:
如果要在Safari中打开URL,请致电:
[[UIApplication sharedApplication] openURL: yourUrl];