获得文件路径

NSString *yourPath = [[NSBundlemainBundle] pathForResource:@"btn_change"ofType:@"png"];

NSFileManager *man = [NSFileManagerdefaultManager];

获得文件的相关属性

NSDictionary *attrs = [man attributesOfItemAtPath: yourPath error: NULL];

得到大小

unsignedlonglong result = [attrs fileSize];

打印

NSLog(@"%lld",result);