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?
Asked
Active
Viewed 283 times
0
-
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 Answers
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
- 17,226
- 9
- 43
- 70