Is it possible to determine actual RAM size of an iOS device?
Referring to this question Determining the available amount of RAM on an iOS device we can determine the available free memory but how to get the actual total size.
Surprisingly, Apple never specifies the amount of RAM in iPhones. But, in general, bigger or "Pro" versions of iPhones come with greater RAM. For example, the iPhone 13 comes standard with 4GB of RAM, whereas the Pro models offer 6GB of RAM. Undoubtedly, Apple exerts a lot more control over the entire iOS ecosystem.
From the top-left menu, open This Device → System for details about your device's RAM. For instance an iPhone 7+ has 3 GB of RAM: Note: I am not affiliated with this app or its developer.
Hardware. The iPhone 11, along with the iPhone 11 Pro, uses Apple's A13 Bionic processor, which contains a third-generation neural engine. It has three internal storage options: 64 GB, 128 GB, and 256 GB. It also has 4 GB of RAM.
The simplest solution to find total RAM in a device is to use NSProcessInfo
:
Objective C:
[NSProcessInfo processInfo].physicalMemory
Swift 3:
NSProcessInfo.processInfo().physicalMemory
Swift 5:
ProcessInfo.processInfo.physicalMemory
Note: physicalMemory
gives us the information at bytes, to calculate GB, divide by the constant 1073741824
.
As documented here.
Slight change for Swift 3: ProcessInfo.processInfo.physicalMemory
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With