I have a strange problem with my iphone. Shows available memory as 278 MB from settings, as well as in itunes . But when I find it programmatically, like this
NSDictionary *fileSystemAttributes = [[NSFileManager defaultManager] attributesOfFileSystemForPath:NSHomeDirectory() error:&error];
double availableSpace = [[fileSystemAttributes objectForKey:NSFileSystemFreeSize] floatValue];
I get this as 458.0 MB . Can anyone help me, why do I have so many differences between these values? Since both values ββshould be the same.
Sneha source
share