开发者

How do I download contents into an NSData using a Secure URL?

I'm starting with the following snip to download an image

NSError *error = nil;
NSString *url = @"https://...";
[NSData dataWithContentsOfURL:[NSURL urlWithString:url] options:nil error:&error];

When this code runs, the error instance contains an error without a whole lot of information in the userInfo. It's just the secure url that was attempted.

Given the results, I'm pretty sure these methods don't handle secure URLs.

My question:

Is there an easy way (like thes开发者_高级运维e methods, or some option) to set the dataWithContentsOfURL: method to download over a secure url?


Try running your URL through this first

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜