problem while finding iphone memory programatically

Posted by sneha on Stack Overflow See other posts from Stack Overflow or by sneha
Published on 2010-04-20T13:55:06Z Indexed on 2010/04/21 4:33 UTC
Read the original article Hit count: 492

Filed under:
|
|

I am facing a strange problem with my iphone. It shows available memory as 278 Mb from settings and also in the itunes . But when i find it programatically like this

NSDictionary *fileSystemAttributes = [[NSFileManager defaultManager] attributesOfFileSystemForPath:NSHomeDirectory() error:&error];
double availableSpace = [[fileSystemAttributes objectForKey:NSFileSystemFreeSize] floatValue];

I am getting it as 458.0 Mb. Can any one help me out why i m having so much difference between both the values ?? As both the values should be same

Thanks in advance

© Stack Overflow or respective owner

Related posts about iphone

Related posts about iphone-sdk