I have a problem in iOS development.
I pass the NSData
and some params to the function.
// this time memory is about 54 MB
+ (NSData*) doFileData : (NSData*) fileData andFileName:(NSString*) fileName{
NSMutableData *fileContentData = [NSMutableData dataWithData: fileData];
// after doing the cast line, the memory is about 99 MB
.....
}
When I cast the NSData
to the NSMutableData
, the memory usage from 54MB upper to the 99 MB.
How can I cast the NSData
to the NSMutableData
using limit memory function?
thank you very much.