How can I playback sound by the use accelerometer?

Discussion in 'iOS Development' started by davidlansalot, Feb 18, 2009.

  1. davidlansalot

    davidlansalot New Member

    Joined:
    Oct 29, 2007
    Messages:
    213
    Likes Received:
    0
    Device:
    2G iPod touch
    Im developing an app that requires the user to move the ipod and a sound plays. However I can't really figure out how trigger the sound through the accelerometer usage. Any help would be appreciated! Thanks
  2. Steaps

    Steaps New Member

    Joined:
    Oct 24, 2007
    Messages:
    5,074
    Likes Received:
    41
    Device:
    iPod touch
    Depends on how you want it moved etc. Look up UIAcceleration.
  3. Chicken

    Chicken Retired Moderator

    Joined:
    Feb 17, 2008
    Messages:
    2,494
    Likes Received:
    7
    Device:
    iPhone 5S
    use an if statement and yeah like stephen.4 said look at the documentation and the UIAcceleration
  4. davidlansalot

    davidlansalot New Member

    Joined:
    Oct 29, 2007
    Messages:
    213
    Likes Received:
    0
    Device:
    2G iPod touch
    Alright thanks

Share This Page