2013-10-21 34 views

回答

1
NSData *pngData = UIImagePNGRepresentation(drawimg.image); 
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); 
NSString *documentsPath = [paths objectAtIndex:0];      //Get the docs directory 
filePath = [documentsPath stringByAppendingPathComponent:@"edited.wai"]; //Add the file name 
[pngData writeToFile:filePath atomically:YES];