What do you mean "does not have the correct orientation"? How are you determining what the correct orientation is?
Note that when you display a UIImage in a UIImageView, it will take the orientation into account, but when you draw the same image using core graphics, you have to do the orientation transformation yourself (which is what scaleAndRotateImage does for you).
Pictures returned from the camera always have a left(?) orientation. Put them in a UIIMageView and you would never know that, but it is "correct".
|