UIImage *image = [UIImage imageNamed:@"图片名"]; CGFloat width = image.size.width; CGFloat height = image.size.height;