我需要使用和image height
。width
我的. 但是当我发现使用的大小时800*800
image
ios simulator
image
image.size.width and image.size.height
它给了我315*120
这是不正确的,为什么会这样?
- (void)elcImagePickerController:(ELCImagePickerController *)picker didFinishPickingMediaWithInfo:(NSArray *)info
{
NSLog(@"%@",info);
int temp = [[DataManager sharedObj] imageCount];
for(NSDictionary *dict in info)
{
[[DataManager sharedObj] setImageCount:temp+1];
NSMutableDictionary* dataDic = [[NSMutableDictionary alloc] init];
UIImage* img = [dict objectForKey:UIImagePickerControllerOriginalImage];
NSLog(@"%.2f",img.size.width);
NSLog(@"%.2f",img.size.height);
}
}