NSURL总是零

时间:2014-11-27 08:33:45

标签: ios xcode

我有奇怪的问题而且能理解它

NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsPath = [paths objectAtIndex:0];

NSString *mylink = [NSString stringWithFormat:@"%@/Bermad/IR_World/CaseStudy/%@",documentsPath,link];
NSURL *targetURL = [NSURL URLWithString:mylink];

NSURLRequest *request = [NSURLRequest requestWithURL:targetURL];
[WebView loadRequest:request];

链接已填充,我的链接也已填充,但targetURL为零,为什么? enter image description here

0 个答案:

没有答案