Guest User

Untitled

a guest
Jan 15th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. NSFileManager *manager = [NSFileManager defaultManager];
  2. if ([manager fileExistsAtPath:path]) {
  3. NSDictionary *attributes = [manager attributesOfItemAtPath:path error:nil];
  4. unsigned long long size = [attributes fileSize];
  5. resultlbl.text = [NSString StringWithFormat:@"%d",size];
  6. }
Add Comment
Please, Sign In to add comment