0

I am making a some complex app, in which every detail is imp. i have some questions 1. how much storage limit we have, if we plan to save big files on core data/cache. 2. Whats the RAM limit on iphone? Actually searching for some table that can give detailed info about IOS devices on this. Because i need to handle memory warnings and defend App crashes. 3. Its better to save images in cache or core data, assume you have a lot of images approx. 200-250.

Thanks

MPelletier
  • 16,256
  • 15
  • 86
  • 137
Sumitiscreative
  • 647
  • 3
  • 10
  • 24
  • try to not store the images inside the CoreData, because it can make the CoreData slow. you should the images in the filesystem, and save the name/path of the image only (or whatever you need to fined the proper image), and load the images from there. – holex Jan 18 '13 at 12:55
  • The app's RAM limit depends on how many apps are running and other factors. In general, your app should be less than 10megs in ram and you will likely not run into problems with your app getting killed. Both iPhone and iPad have an upper limit of 700 megs of memory mapped file IO space (not the same as ram). Disk space depends on how big the storage on the device is. – MoDJ Aug 20 '13 at 23:44

1 Answers1

1

1) I am not aware of any storage limit. Obviously, you will never get 64GB or more - since no device is larger ;-). My wife's facebook app consumes >5GB at the moment... I suppose they did something wrong. The only important point is to fail gracefully (show a dialog, clean some space, ...) if the storage is full.

2) The RAM limit varies depending on the iPhone model and the currently running applications. Also there are some iPods with less memory in market. 30MB should be pretty safe. Total physical memory of the device can be retrieved as described here while retrival of the available RAM can be derived from that question.

3) Maybe this is a good starting point. I would always write image data to the file system and just store the file name inside the database, as suggested here.

Community
  • 1
  • 1
Christoph
  • 1,525
  • 1
  • 16
  • 27
  • So as per my experience agreed to both @ chris and @holex. thnks so much, file system is a better call . Also, is there a limit of caching per ios devices because, i found some issue in one app in which caching was done in NSDocumentDir... i think NSCachinDir should be used (pls reply on this) ...and is there any limit of caching/ precaution we need to follow for smooth app on this side. – Sumitiscreative Jan 18 '13 at 13:21
  • @christoph....bt yes...we should store images which change very often in NSCacheDirectory and not in NSDocumentDirectory RIGHT ??? – Sumitiscreative Jan 29 '13 at 09:02
  • Without knowing your use case in detail: yes. Maybe [this](http://iphoneincubator.com/blog/data-management/local-file-storage-in-ios-5) could help you. – Christoph Jan 29 '13 at 13:26