Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Apr 12, 2009, 09: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, 11: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, 11: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, 07: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

Similar Threads
thread Thread Starter Forum Replies Last Post
Control + Arrow key (how to move one word left/right?) altjx OS X 10.8 Mountain Lion 3 Sep 1, 2013 04:04 PM
Can I make my (main) desktop move in Mission Control? Jord5i OS X 10.8 Mountain Lion 10 Jul 2, 2013 01:23 PM
Set font size for all text views programatically moonman239 iPhone/iPad Programming 15 Feb 26, 2013 10:42 PM
Printer connection in iphone Programatically manga iPhone 1 Jan 30, 2013 02:32 AM
How to get the latest downloaded file name with applescript programatically? madhusudhanjr Mac Programming 1 Oct 19, 2012 03:54 PM

Forum Jump

All times are GMT -5. The time now is 02:32 PM.

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

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