Loading...
Uploaded by iPhoneSDKtutor on Aug 21, 2009
this is a quick tutorial showing you guys how to use the shake feature in your application!
Education
Standard YouTube License
@jklzslc its the axes you can shake your device in...
pelleoskar 1 year ago
"Great ,Help Appreciated!"
michaelw352 1 year ago
sorry ignore the spaces between UIAccelerometer, they shouldn't be there
peggasus988 1 year ago
For anyone who is receiving the member error you will need to change
- (void)accelerometer:(UIAccelerometer *)accelerometer didAccelerate:(UIAccelerometer *)acceleration
to
- (void)accelerometer:(UIAccelerometer *)accelerometer didAccelerate:(UIAcceleration *)acceleration
its need to UIAcceleration rather than UIAccelerometer here, hope this helps
Very nice tutorial.
JBoen81 2 years ago
woah some competition there
SammyJay2008 2 years ago
so if i wanted it to go to a different screen when I shake it...what would be the code for it!!!!?!!?!
PLEASE REPLY!!!
MacEdits 2 years ago
i get these same errors too.. error:request for member 'x' in something not a structure or union
error:request for member 'y' in something not a structure or union
error:request for member 'z' in something not a structure or union
why is this?
jklzslc 2 years ago
It probably only works for version 3.0 coz that's wat he's using.
jessRonMan 2 years ago
This made my day!
zanekills 2 years ago 2
Load more suggestions
@jklzslc its the axes you can shake your device in...
pelleoskar 1 year ago
"Great ,Help Appreciated!"
michaelw352 1 year ago
sorry ignore the spaces between UIAccelerometer, they shouldn't be there
peggasus988 1 year ago
For anyone who is receiving the member error you will need to change
- (void)accelerometer:(UIAccelerometer *)accelerometer didAccelerate:(UIAccelerometer *)acceleration
to
- (void)accelerometer:(UIAccelerometer *)accelerometer didAccelerate:(UIAcceleration *)acceleration
its need to UIAcceleration rather than UIAccelerometer here, hope this helps
peggasus988 1 year ago
Very nice tutorial.
JBoen81 2 years ago
woah some competition there
SammyJay2008 2 years ago
so if i wanted it to go to a different screen when I shake it...what would be the code for it!!!!?!!?!
PLEASE REPLY!!!
MacEdits 2 years ago
i get these same errors too.. error:request for member 'x' in something not a structure or union
error:request for member 'y' in something not a structure or union
error:request for member 'z' in something not a structure or union
why is this?
jklzslc 2 years ago
It probably only works for version 3.0 coz that's wat he's using.
jessRonMan 2 years ago
This made my day!
zanekills 2 years ago 2