NSURL
drukowanie null
. Jaki jest powód?Utworzono NSURL ma wartość null
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];
Proszę sformatować kod w pytaniu, klikając przycisk {}. http://meta.stackexchange.com/questions/22186/how-do-i-format-my-code-blocks –