【发布时间】:2012-07-31 20:03:25
【问题描述】:
希望这是一个简单的问题,但我找不到任何具体的答案。 我们已经完成了更新企业应用 OTA 的所有步骤。我的问题是,我可以使用 AFNetworking 拨打电话吗?或者什么是调用链接的最佳方式。 (目前 afnetworking 给了我错误,但它可能是我们这边的问题。)我只使用 afnetworking,所以除非我必须这样做,否则宁愿不改变。 提前致谢
itms-services://?action=download-manifest&url=http://ourServer/Setup/manifest.plist
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:kiPADSetupLink]];
[request setTimeoutInterval:300];
NSLog(@"begin downloading app update");
AFHTTPRequestOperation *operation = [[AFHTTPRequestOperation alloc] initWithRequest:request];
[operation setCompletionBlockWithSuccess:^(AFHTTPRequestOperation *operation, id responseObject)
{
// handle success
} failure:^(AFHTTPRequestOperation *operation, NSError *error)
{
// handle error
} ];
[operation start];
【问题讨论】:
-
您使用任何 MDM 产品吗? (空中监视等...)?
标签: ios afnetworking