Tagged Questions

0
votes
1answer
20 views

How to save data to a file using outputstreams or in any efficient way?

I have implemented in app purchase in my application,and the content i need to download from the store would be large.All these days i have been using dictionary to store the received data from the ...
1
vote
1answer
103 views

What am I doing wrong? NSFileManager woes

I'm currently building quite a large iPhone application. Bigger than I expected anyway. But that is beside the point, the overall idea of the application is to grab JSON from a web service, sort it ...
1
vote
2answers
220 views

Saving data - does work on Simulator, not on Device

I use NSData to persist an image in my application. I save the image like so (in my App Delegate): - (void)applicationWillTerminate:(UIApplication *)application { NSLog(@"Saving data"); ...
0
votes
1answer
3k views

iPhone: How to Write an Image to Disk in the App Directories

I am working on an iPhone project in which I need save camera images to disk and file but the code below fails: (**** -(void)imagePickerController:(UIImagePickerController *) picker ...
2
votes
1answer
265 views

Creating files in Objective-C

Which is the faster way of creating files ? Case 1: ====== NSData *data = [Some data]; [data writeToFile:filePath atomically:YES]; Case 2: ======= NSFileManager *fileManager = [NSFileManager ...