高さと幅の画像値を計算し、imagsize が使用可能かどうかを if 条件で確認しています。そうでない場合は、UIImageView のサイズに何らかの値を割り当てています。しかし、if条件で画像サイズをチェックすると、このエラーが発生しました value of type CGSize is not contextually convertible to bool
CGSize imageSize = CGSizeMake(350 * widthRatio, height);
if(imageSize){
mmageView=[[UIImageView alloc]init];
CGRect frame = mmageView.frame; frame.size = imageSize; mmageView.frame = frame;
}else{
mmageView=[[UIImageView alloc]initWithFrame:CGRectMake(50,50,150,150)];
}