0

I want to capture the memory allocation by content type (example: music, video, etc). How can this be done on iPhone?

David Pfeffer
  • 38,869
  • 30
  • 127
  • 202
pushpa
  • 573
  • 2
  • 7
  • 19

1 Answers1

1

If you get the file path then you can get the size of that:

int fileSize = [[[NSFileManager defaultManager] attributesOfItemAtPath:someFilePath error:nil] fileSize];

See: https://bitbucket.org/artgillespie/tslibraryimport

David Pfeffer
  • 38,869
  • 30
  • 127
  • 202