iOS(Iphone/iPad/iPod Touch)设备有多少内存?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/371107/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-30 15:27:01  来源:igfitidea点击:

How much RAM is there in an an iOS (Iphone/iPad/iPod Touch) Device?

iphoneobjective-cioscocoa-touchmacos

提问by AnthonyLambert

Different iPhones have different published memory 4GB, 8GB and 16GB. The touch can have 32GB. My understanding is this is the off-line memory (disk alike).

不同的 iPhone 有不同的公开内存,4GB、8GB 和 16GB。触摸可以有32GB。我的理解是这是离线内存(磁盘类似)。

How much actual fast ram is there in the device available for my Cocoa Application?

设备中有多少实际快速内存可用于我的 Cocoa 应用程序?

Is there a preconfigured virtual amount?

是否有预先配置的虚拟金额?

采纳答案by AnthonyLambert

enter image description hereCurrently released Apple iOS devices have the following amounts of working memory:

在此处输入图片说明当前发布的 Apple iOS 设备具有以下工作内存量:

iPhone        =  128 MB
iPhone 3G     =  128 MB
iPhone 3GS    =  256 MB
iPhone 4      =  512 MB
iPhone 4S     =  512 MB    
iPhone 5      = 1024 MB
iPhone 5S     = 1024 MB

iPod Touch 1G  =  128 MB
iPod Touch 2G  =  128 MB
iPod Touch 3G  =  256 MB
iPod Touch 4G  =  256 MB
iPod Touch 5G  =  512 MB

iPad           =  256 MB
iPad 2         =  512 MB
iPad (3)       = 1024 MB
iPad (4)       = 1024 MB
iPad Air       = 1024 MB

iPad mini (1G) =  512 MB
iPad mini (2G) = 1024 MB

回答by Mehrdad Afshari

iPhone

苹果手机

  • iPhone (June 2007): 128MB
  • iPhone 3G (July 2008): 128MB
  • iPhone 3GS (June 2009): 256MB
  • iPhone 4 (June 2010): 512MB
  • iPhone 4S (October 2011): 512MB
  • iPhone 5 (September 2012): 1GB
  • iPhone 5S (September 2013): 1GB
  • iPhone 6 (September 2014): 1GB
  • iPhone 6 Plus (September 2014): 1GB
  • iPhone 6S (September 2015): 2GB
  • iPhone 6S Plus (September 2015): 2GB
  • iPhone 7 (September 2016): 2GB
  • iPhone 7 Plus (September 2016): 3GB
  • iPhone(2007 年 6 月):128MB
  • iPhone 3G(2008 年 7 月):128MB
  • iPhone 3GS(2009 年 6 月):256MB
  • iPhone 4(2010 年 6 月):512MB
  • iPhone 4S(2011 年 10 月):512MB
  • iPhone 5(2012 年 9 月):1GB
  • iPhone 5S(2013 年 9 月):1GB
  • iPhone 6(2014 年 9 月):1GB
  • iPhone 6 Plus(2014 年 9 月):1GB
  • iPhone 6S(2015 年 9 月):2GB
  • iPhone 6S Plus(2015 年 9 月):2GB
  • iPhone 7(2016 年 9 月):2GB
  • iPhone 7 Plus(2016 年 9 月):3GB

iPod touch

iPod touch

  • 1st generation (September 2007): 128MB
  • 2nd generation (September 2008): 128MB
  • 3rd generation (September 2009): 256MB
  • 4th generation (September 2010): 256MB
  • 5th generation (October 2012): 512MB
  • 6th generation (July 2015): 1GB
  • 第一代(2007 年 9 月):128MB
  • 第二代(2008 年 9 月):128MB
  • 第三代(2009 年 9 月):256MB
  • 第 4 代(2010 年 9 月):256MB
  • 第 5 代(2012 年 10 月):512MB
  • 第 6 代(2015 年 7 月):1GB

iPad

iPad

  • 1st generation (April 2010): 256MB
  • iPad 2 (2011): 512MB
  • 3rd generation (March 2012): 1GB
  • 4th generation (November 2012): 1GB
  • iPad Air (November 2013): 1GB
  • iPad Air 2 (October 2014): 2GB
  • iPad Pro 12.9" (November 2015): 4GB
  • iPad Pro 9.7" (April 2016): 2GB
  • 第一代(2010 年 4 月):256MB
  • iPad 2 (2011):512MB
  • 第三代(2012 年 3 月):1GB
  • 第 4 代(2012 年 11 月):1GB
  • iPad Air(2013 年 11 月):1GB
  • iPad Air 2(2014 年 10 月):2GB
  • iPad Pro 12.9"(2015 年 11 月):4GB
  • iPad Pro 9.7"(2016 年 4 月):2GB

iPad mini

小型平板电脑

  • 1st generation (November 2012): 512MB
  • iPad mini 2 (November 2013): 1GB
  • iPad mini 3 (October 2014): 1GB
  • iPad mini 4 (September 2015): 2GB
  • 第一代(2012 年 11 月):512MB
  • iPad mini 2(2013 年 11 月):1GB
  • iPad mini 3(2014 年 10 月):1GB
  • iPad mini 4(2015 年 9 月):2GB

Apple Watch

苹果手表

  • 1st generation (April 2015): 512MB
  • 第一代(2015 年 4 月):512MB

Apple TV

苹果电视

  • 2nd generation (2010): 256MB
  • 3rd generation (2012): 512MB
  • 4th generation (2015): 2GB
  • 第二代(2010):256MB
  • 第三代(2012):512MB
  • 第四代(2015):2GB

iOS doesn't use swap space, therefore, only RAM will be available to processes. (That said, iOS does support paging executables.)

iOS 不使用交换空间,因此,只有 RAM 可用于进程。(也就是说,iOS 确实支持分页可执行文件。)

回答by Mike Akers

iPhone and iPod touch has 128 megs of ram, but 3rd party applications should only count on having about 20 megs available.

iPhone 和 iPod touch 有 128 兆内存,但 3rd 方应用程序应该只指望有大约 20 兆可用内存。

回答by Stephen Darlington

As Mehrdad Afshari says, it's 128Mb (except for the 3GS which has twice that), but why do you need to know? Not all of it is accessible to programs and the exact amount varies. Presumably activities like running iPod in the background saps some memory and OS2.1, for instance, seemed to leave less free memory than 2.0.

正如 Mehrdad Afshari 所说,它是 128Mb(除了两倍的 3GS),但你为什么需要知道?并非所有这些都可供程序访问,确切的数量各不相同。据推测,像在后台运行 iPod 之类的活动会占用一些内存,例如,OS2.1 留下的可用内存似乎比 2.0 少。

The key, application wise, is to cache stuff rather than require everything in memory and to heed the memory warning notifications. Your app will be forced to quit if you don't. (If it quits with status 101, you were using too much memory.)

应用明智的关键是缓存内容而不是要求内存中的所有内容并注意内存警告通知。如果您不这样做,您的应用程序将被迫退出。(如果它以状态 101 退出,则说明您使用了太多内存。)

回答by Slyv

Go to ios app maximum memory budgetto see more devices and RAM amount that can be really allocated.

转到ios 应用程序最大内存预算以查看可以真正分配的更多设备和 RAM 量。