如何在iphone本机应用程序中显示Web服务器的目录列表
如何从web服务器获取iphone本机应用程序上的文件和目录名如何在iphone本机应用程序中显示Web服务器的目录列表,iphone,Iphone,如何从web服务器获取iphone本机应用程序上的文件和目录名 NSData *urlData; NSString *urlString = @"mysite.com/myfile"; NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:urlString] cachePolicy:NSURLRequestReloadIgnoringLocalCacheData timeoutInterval:
NSData *urlData;
NSString *urlString = @"mysite.com/myfile";
NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:urlString] cachePolicy:NSURLRequestReloadIgnoringLocalCacheData timeoutInterval: 10.0];
NSURLConnection *connection=[[NSURLConnection alloc] initWithRequest:request delegate:nil];
if (connection) {
urlData = [ NSURLConnection sendSynchronousRequest: request
}
[connection release];