Advertise
Mobile SDKs
Books
Events
Forum
News
Social Networking
Support Us
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?
iPhone Dev SDK Forum
>
iPhone SDK Development Forums
>
iPhone SDK Development
Setting an Object's Location With Code
User Name
Remember Me?
Password
Register
FAQ
Members List
Calendar
Search
Today's Posts
Mark Forums Read
LinkBack
Thread Tools
Display Modes
12-26-2009, 12:38 AM
#
1
(
permalink
)
ColouredRobot
College Student
Join Date: Dec 2009
Location: Los Angeles, CA
Posts: 75
Setting an Object's Location With Code
I have a custom built slider, and when it is created in xcode, it appears at the top left corner of my app. I was wondering if anyone knew how to change location of an object through code. For example, move it 100 pixels lower on the screen. Thanks!
12-26-2009, 03:04 AM
#
2
(
permalink
)
jfbomber
Registered Member
Join Date: May 2009
Location: Murray, Utah
Posts: 24
in your loadview or init method just change the frame;
slider.frame = CGRectMake(x float, y float, width float, height float);
__________________
- Jason
12-26-2009, 03:58 AM
#
3
(
permalink
)
ColouredRobot
College Student
Join Date: Dec 2009
Location: Los Angeles, CA
Posts: 75
Quote:
Originally Posted by
jfbomber
in your loadview or init method just change the frame;
slider.frame = CGRectMake(x float, y float, width float, height float);
Thanks, worked like a charm!
Bookmarks
Digg
del.icio.us
StumbleUpon
Google
Tags
axis
,
button
,
location
,
set location
,
slider
«
Previous Thread
|
Next Thread
»
Thread Tools
Show Printable Version
Email this Page
Display Modes
Linear Mode
Switch to Hybrid Mode
Switch to Threaded Mode
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
Forum Rules
LinkBack
LinkBack URL
About LinkBacks
» Advertisements
»
Popular Tags
animation
app
apple
apps
appstore
app store
array
audio
button
camera
cocos2d
code
core data
crash
data
database
developer
development
download
error
facebook
free
fun
game
games
gps
image
ios
ios 5
ios5
ipad
ipad app
iphone
iphone app
iphone apps
iphone game
itunes
job
kids
marketing
memory
music
nsmutablearray
objective - c
objective-c
objective c
photo
plist
promo code
promo codes
promotion
puzzle
sdk
sound
sqlite
tableview
text
uibutton
uiimage
uiimageview
uiscrollview
uitableview
uitextfield
uiview
uiwebview
video
view
xcode
xcode 4
xml
»
Online Users: 331
22 members and 309 guests
@sandris
,
ADY
,
BrianSlick
,
dacapo
,
Dani77
,
Dattee
,
dre
,
HDshot
,
HemiMG
,
JasonR
,
MarkC
,
mer10
,
nibeck
,
prchn4christ
,
ryandb2
,
spiderguy84
,
themathminister
,
timle8n1
,
tomtom100
,
viniciusdamone
,
vogueestylee
,
vvenkatachallam
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,883
Threads: 89,229
Posts: 380,763
Top Poster:
BrianSlick
(7,129)
Welcome to our newest member,
vvenkatachallam
Powered by
vBadvanced
CMPS v3.1.0
All times are GMT -5. The time now is
02:10 PM
.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by
vBSEO
3.3.0
Custom
vBulletin Skins
by:
Relivo Media
Contact Us
-
iPhone Dev SDK
-
Archive
-
Top