Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- NSFileManager *manager = [NSFileManager defaultManager];
- if ([manager fileExistsAtPath:path]) {
- NSDictionary *attributes = [manager attributesOfItemAtPath:path error:nil];
- unsigned long long size = [attributes fileSize];
- resultlbl.text = [NSString StringWithFormat:@"%d",size];
- }
Add Comment
Please, Sign In to add comment