我使用该法典删除FTP链接的档案。
url = [[NSURL alloc] initWithString:@"ftp://sikmac3:remuza@localhost/Test.php"];
CFURLRef urlRef;
urlRef = (CFURLRef) url;
Boolean test = CFURLDestroyResource(urlRef, status);
if(test){
NSLog(@"deletion success");
}else{
NSLog(@"deletion failed");
}
CFRelease(urlRef);
[url release];
the file was deleted. but application became crashed/ terminated immediately.
任何人都知道这一案件。 我如何解决这一问题?