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 07-22-2009, 02:23 PM   #1 (permalink)
gwg
New Member
 
Join Date: Jul 2009
Posts: 3
Default CGRect change height

Searching for this for days. I done a lot a tutorials that show how to move a subview around the view. I only want to move the height, the rest of the subview would not move.I also don't want the image to move, (just how much you see of the image), I also do not need to crop. Any pointers on this would be very appreciated.
gwg is offline   Reply With Quote
Old 07-22-2009, 02:51 PM   #2 (permalink)
Registered Member
 
Join Date: Jul 2009
Posts: 12
Default

I guess you could just access the height and change it:
Code:
view.frame.size.height = SOMETHING;
(If you check the frameworks, you'll realize that height is a CGFloat, part of a CGSize structure, size is a CGSize structure, part of a CGRect structure, frame is a CGRect, and frame is a property of UIView)

Although if that doesn't work, you could just make a new frame, and use the old properties that you do need, in this case:
Code:
view.frame = CGRectMake(frame.origin.x, frame.origin.y, frame.size.width, SOMETHING);
Pelaez is offline   Reply With Quote
Old 07-22-2009, 03:39 PM   #3 (permalink)
gwg
New Member
 
Join Date: Jul 2009
Posts: 3
Default

For clarification this is what I want to do. I need the height of the rectangle to correspond to the touch event (where the user's finger is)Kind of like split view controller, but I do not want the controller bars .

Last edited by gwg; 07-22-2009 at 03:45 PM.
gwg is offline   Reply With Quote
Old 07-31-2009, 03:58 PM   #4 (permalink)
gwg
New Member
 
Join Date: Jul 2009
Posts: 3
Default help!

I have spent weeks studying tutorials, reading books, forums...I have learned a lot , but nothing has anything like this.center. I know the height is a size and not a point. Do I need to use CGGetMAXX? You can't imagine my appreciation for any help. I have uploaded a pic to explain. (I think you have to click example)I would also like to build in interface builder.
Attached Images
File Type: jpg example.jpg (8.5 KB, 2 views)
gwg is offline   Reply With Quote
Reply

Bookmarks

Tags
cgrect, move, subview, touch, uiimageview and uiimage

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: 254
19 members and 235 guests
ADY, Alsahir, beleg_1998, Dani77, e2applets, iDifferent, iph_s, JamesCahall, JasonR, mer10, Monstertaco, prchn4christ, Promo Dispenser, Robiwan, Rudy, smithdale87, spiderguy84, timle8n1
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,880
Threads: 89,228
Posts: 380,756
Top Poster: BrianSlick (7,129)
Welcome to our newest member, @sandris
Powered by vBadvanced CMPS v3.1.0

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