I am creating an application for recording sound, and I need to know how much free disk space (not ram).
How to get it?
Thanks.
I have not tried this, but since iPhone is a UNIX-based OS, you should be able to get free space on the flash file system using statfs (see the documentation link).
Just use the path to the application directory that you plan to write as a parameter.
The best solution for me is to use the NSFileManager method:
- (NSDictionary *)attributesOfFileSystemForPath:(NSString *)path error:(NSError **)error
, . statfs, . NSFileManager, .
statfs
This is probably a useful example.
http://kdbdallas.com/2008/12/27/maciphone-show-availble-useable-diskspace/
Source: https://habr.com/ru/post/1714669/More articles:How to place components in the vertical scroll area only? - javaChanging the stylesheet in the code on the main page - c #Get a pen on the last worksheet copied to Worksheet.Copy - vbaGiven a list of words - what would be a good algorithm to complete a word in java? Trade-offs: speed / efficiency / memory size - javaJSF - Richfaces - How to find out if a session is expiring (on the client) - sessionWhere to look for synchronized evidence in java? - javaAggregate function and other columns - sqlinstall the PUT method on the rails of XML queries - httpWhere is the javadoc log4j trap hiding? - jarUITabBarController UINavigationController Design Advice - iphoneAll Articles