NSURL
impression null
. Quelle est la raison?Créé NSURL est nul
NSString *webStr = [[NSString alloc] initWithFormat:@"%@",[webArray objectAtIndex:1]];
NSLog(@"urlString = %@",webStr); // its printing correct url string
NSURL *webURL = [[NSURL alloc] initWithString:webStr];
NSLog(@"url = %@",webURL); // its printing null
[webURL release];
[webStr release];
Veuillez mettre en forme le code dans votre question en cliquant sur le bouton {}. http://meta.stackexchange.com/questions/22186/how-do-i-format-my-code-blocks –