How assign picked photo to a UIImageView and scale it to size?
Hi, all...
I'd like to use UIImagePickerController to take or pick a photo, and then assign the photo to a UIImageView, which is a subview of another view that is the header for a table view. (tableView.tableHeaderView).
What's the easiest way to scale the photo so that it fits in the UIImageView? I do not want the UIImageView frame or the enclosing table header view's frame to grow when I assign the photo to the UIImageView. Nor do I want to clip the image.
Is there a property of the UIImageView (or its enclosing view) that I can set so that it doesn't grow and instead automatically down-scales the photo? Or must I scale the photo before assigning it to the UIImageView? If so, how?
Thx
Steve
|