Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 03-16-2009, 03:45 AM   #1 (permalink)
Registered Member
 
Join Date: Mar 2009
Location: Redwood City, CA
Posts: 31
Default 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
sfogel2 is offline   Reply With Quote
Reply

Bookmarks

Tags
image editing

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 240
15 members and 225 guests
ADY, AragornSG, Dani77, Dattee, Duncan C, fkmtc, HDshot, HemiMG, Promo Dispenser, Punkjumper, Rudy, sacha1996, sneaky, spiderguy84, theone8one
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,885
Threads: 89,231
Posts: 380,768
Top Poster: BrianSlick (7,129)
Welcome to our newest member, bookesp
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 03:16 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0