NSURL
प्रिंटिंग null
। क्या कारण है?बनाया गया NSURL शून्य है
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];
कृपया {} बटन पर क्लिक करके अपने प्रश्न में कोड को प्रारूपित करें। http://meta.stackexchange.com/questions/22186/how-do-i-format-my-code-blocks –