【发布时间】:2010-02-17 16:46:08
【问题描述】:
我想知道是否可以将一个人的位置的经纬度发送到 URL?它还需要具有与数据库匹配的 UDID 编号。
这是我目前所拥有的:
-(void)viewDidLoad {
NSString *query = [[NSString alloc] initWithFormat:
@"http://example.com/ihome.php?uid=%@",
[[UIDevice currentDevice] uniqueIdentifier],
@"&year=2010%@"];
NSURL *url = [[NSURL alloc] initWithString:query];
NSURLRequest *requestObj = [ NSURLRequest requestWithURL: url ];
webView.opaque = NO;
webView.backgroundColor = [UIColor clearColor];
[webView loadRequest: requestObj ];
}
【问题讨论】:
标签: iphone uiwebview cllocation