Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

justinm

macrumors member
Original poster
Aug 15, 2007
93
0
Orlando FL
Hey Everyone-

Trying to make my first iPhone app here. Need some basic help.

I am trying to make a very simple app just for myself that has a simple interface. There is one button, which is supposed to make the phone vibrate. I read on the iPhone Dev Center that I need to make a Audioservices.h file which I did. I am having a hard time understanding where to put the code. Here is where I saw the info. http://developer.apple.com/iphone/library/codinghowtos/AudioAndVideo/index.html#PLAYBACK-TRIGGER_VIBRATION_IN_IPHONE

If you need any files from me, just let me know.
 

bnut

macrumors newbie
Nov 16, 2008
28
0
Hey Justin, you're not the only one wondering this, someone was asking the exact same thing at a conference I was at the other day. My understanding is that you can prompt the iPhone to make the standard vibration by calling AudioServicesPlayAlertSound with the correct constant.

If you check your iPhone docs for that entry it should have the constant. As for custom vibrations, as far as I know it is not exposed.
 

MalathiV

macrumors newbie
Nov 25, 2008
4
0
Hey Everyone-

Trying to make my first iPhone app here. Need some basic help.

I am trying to make a very simple app just for myself that has a simple interface. There is one button, which is supposed to make the phone vibrate. I read on the iPhone Dev Center that I need to make a Audioservices.h file which I did. I am having a hard time understanding where to put the code. Here is where I saw the info. http://developer.apple.com/iphone/library/codinghowtos/AudioAndVideo/index.html#PLAYBACK-TRIGGER_VIBRATION_IN_IPHONE

If you need any files from me, just let me know.

Try the link Below,
http://developer.apple.com/iphone/library/samplecode/SysSound/index.html
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.