我无法显示我的图像(.png)。我检查它是否存在于我使用的路径中,它确实存在。但是没有图像出现。这是我一直在尝试的:NSArray*documentPaths=NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask,YES);NSString*documentsDir=[documentPathsobjectAtIndex:0];NSString*outputPath=[documentsDirstringByAppendingPathComponent:[fileListobjectAtInde
我无法显示我的图像(.png)。我检查它是否存在于我使用的路径中,它确实存在。但是没有图像出现。这是我一直在尝试的:NSArray*documentPaths=NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask,YES);NSString*documentsDir=[documentPathsobjectAtIndex:0];NSString*outputPath=[documentsDirstringByAppendingPathComponent:[fileListobjectAtInde
我正在尝试从互联网上下载一个iamge,这是代码:try{StringimgURL=c.imgURL;StringimgPATH=c.imgPATH;URLurl=newURL(imgURL);URLConnectionconexion=url.openConnection();conexion.connect();intlenghtOfFile=conexion.getContentLength();try{Filef=newFile(imgPATH);f.mkdirs();BufferedInputStreaminput=newBufferedInputStream(url.ope
我正在尝试从互联网上下载一个iamge,这是代码:try{StringimgURL=c.imgURL;StringimgPATH=c.imgPATH;URLurl=newURL(imgURL);URLConnectionconexion=url.openConnection();conexion.connect();intlenghtOfFile=conexion.getContentLength();try{Filef=newFile(imgPATH);f.mkdirs();BufferedInputStreaminput=newBufferedInputStream(url.ope