Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

fenrus110

macrumors regular
Original poster
Not sure if this is possible, but can you detect the amount of disk space left on the device? For an app that has a sqlite database and/or stores images or something, it could be a concern.
 
Code:
	NSDictionary *fsAttr = [[NSFileManager defaultManager] fileSystemAttributesAtPath:NSHomeDirectory()];
	
	unsigned long long freeSpace = [[fsAttr objectForKey:NSFileSystemFreeSize] unsignedLongLongValue];

will return the free space available to you, in bytes
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.