как пройти локальный путь к NSXMLParser
как пройти локальный путь к NSXMLParser
как этот
NSXMLParser *xmlParser = [[NSXMLParser alloc] initWithContentsOfURL:storePath];
где storepath является локальный путь, как это:
/var/mobile/Applications/56EEB906-2B73-493C-9BE7-2732440CDB69/Documents/xml1.php
и мой код например:
//NSURL *urla = [[NSURL alloc] initWithString:storePath];
NSURL *urla = [[[NSURL alloc] init] fileURLWithPath:storePath];
//NSData *dataa = [NSData dataWithContentsOfURL:urla];
NSLog(@"urls ois %@",urla);
помочь мне, почему я получаю нулевое значение
спасибо, но как удалить эти места ?? файл: //localhost/Users/applefan/Library/Application%20Support/iPhone%20Simulator/3.1.3/Applications/134C5D58-D930-4F0A-B2F7-D25A170D6F09/Documents/xml1.php – ram
); \t \t NSString * documentsDirectory = [paths objectAtIndex: 0]; \t documentsDirectory = [documentsDirectory stringByTrimmingCharactersInSet: [NSCharacterSet whitespaceCharacterSet]]; \t \t NSLog (@ "documentsDirectory is% @", documentsDirectory); \t \t \t \t NSURL * URLC = [NSURL fileURLWithPath: [documentsDirectory \t \t \t \t \t \t \t \t \t \t \t stringByAppendingString: @ "/ xml1.php"]]; \t \t \t \t \t \t \t \t // URLC = [URLC stringByTrimmingCharactersInSet: [NSCharacterSet whitespaceCharacterSet]]; \t \t NSLog (@ "urls is% @", urlc); URLC все еще имеет пространство плз помощь – ram
как этот Иле: //localhost/Users/applefan/Library/Application%20Support/iPhone%20Simulator/3.1.3/Applications/FD5A8AF3-0B07-4D56-8477-97F0DCEF15B5/ Документы/xml1.php – ram