Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Apr 12, 2009, 08:51 PM   #1
scooterf
macrumors newbie
 
Join Date: Apr 2009
Can I programatically move a control?

Suppose I have a UIButton...can I programatically change the x and y locations of the button on the screen? What would the property be? New to this....

Thanks
scooterf is offline   0 Reply With Quote
Old Apr 12, 2009, 10:51 PM   #2
iphonedevelop18
macrumors member
 
Join Date: Feb 2009
watch this tutorial, it should give you a general idea of grabbing the x and y values of an object in the code and play around with it a little.
iphonedevelop18 is offline   0 Reply With Quote
Old Apr 12, 2009, 10:53 PM   #3
firewood
macrumors 603
 
Join Date: Jul 2003
Location: Silicon Valley
Yes. You can even animate the movement.

To find the relevant property, just read the definition and reference for UIButton, and follow the chain of whatever classes it inherits from. All built into XCode.

o
firewood is offline   0 Reply With Quote
Old Apr 13, 2009, 06:38 AM   #4
scooterf
Thread Starter
macrumors newbie
 
Join Date: Apr 2009
that tutorial is perfect. Thanks.
scooterf is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Easiest/Best Version Control System to use with Eclipse? oxfordguy Mac Programming 0 Nov 19, 2011 10:01 AM
Programatically resize reposition applications IDMah Mac Programming 3 Sep 8, 2011 09:14 AM
PlayStation Move motion controller announced, to be priced around $100 jaw04005 Console Games 57 Oct 1, 2010 01:07 AM
Jobs Moves To Control The Living Room With Apple TV MacBytes MacBytes.com News Discussion 2 Jan 11, 2007 03:09 PM


All times are GMT -5. The time now is 05:27 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC