0

How do we access device memory statistics programmatically? Suppose I want to know whats the devices total memory capacity is. For example, whether it's 16GB, 32Gb or 64GB, and how much has been utilized?

danielbeard
  • 8,805
  • 3
  • 40
  • 58
ck8414
  • 193
  • 1
  • 1
  • 6
  • Duplicate question here: [http://stackoverflow.com/questions/5712527/how-to-detect-total-available-free-disk-space-on-the-iphone-ipad-device][1] [1]: http://stackoverflow.com/questions/5712527/how-to-detect-total-available-free-disk-space-on-the-iphone-ipad-device – Yangshun Tay Feb 22 '13 at 23:33

1 Answers1

0

you can check this through the method attributesOfFileSystemForPath:. store the returned value into dictionary and then by using key NSFileSystemSize, you can check total memory size and by key NSFileSystemFreeSize you can check available memory

Ravindra Bagale
  • 16,225
  • 9
  • 38
  • 68