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

View Single Post
Old 11-09-2009, 07:13 AM   #2 (permalink)
Akshay Shah
Registered Member
 
Join Date: Aug 2008
Location: Pune, India
Posts: 314
Send a message via Skype™ to Akshay Shah
Cool

Quote:
Originally Posted by monty747 View Post
How do I programatically make changes to the width/height of a UIImageView? This would be a single instance of the view but would have different sizes depending on which button the user selects on-screen. I can get it to display the first time with the place and size I want but then it needs to change size and I'm not finding a way to access width/height numbers without doing a CGRectMake again. I already initialized it so doing it a second time would create a second view in addition to the first. I guess I'm looking for a:

myImageView.w = 10;
myImageView.h = 20;

type deal. Any thoughts?

You need to set a complete frame of the imageView.
For the above values it will be done as
Code:
[myImageView setFrame:CGRectMake(myImageView.frame.origin.x, 
myImageView.frame.origin.y,10,20)];
Hope this helps...

Regards,
Akshay Shah.
__________________
If you think I did help you, you can always thank me by buying
iHoldMore - A very nice and addictive game...

Need a mobile app. Contact Us.
Ruby Solutions Pvt. Ltd.
You can mail me at akshay@ruby-solutions.com
Akshay Shah is offline   Reply With Quote
 

» Advertisements
» Online Users: 345
19 members and 326 guests
ADY, apatsufas, BdR, catedawn, fiftysixty, F_Bryant, iDifferent, john love, jorge599, kampftrinker, ligerligerliger, mer10, mizzytheboy, Naughty_Ottsel, nobre84, RoryHarvey, themathminister
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,876
Threads: 89,225
Posts: 380,701
Top Poster: BrianSlick (7,129)
Welcome to our newest member, jorge599
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 07:25 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.