Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 6    Views: 129

theGreek
Aspiring developer
Profile
Posts: 648
Reg: May 25, 2011
Schaumburg, IL
7,830
03/12/12 03:49 PM (13 years ago)

Add a vibrate function to an IOS Device

Vibrating your device makes a huge impact on your app wether the user did something wrong and your warning them or there playing a game and the device vibrates on the users input to the game which makes your apps more exciting and more enjoyable. Untested by me. But another fellow coder at another site said it works.... The code ViewController.h -(IBAction)Vibrate; ViewController.m #import "ViewController.h" #import "AudioToolbox/AudioToolbox.h" @implementation ViewController -(IBAction)Vibrate { AudioServicesPlaySystemSound(kSystemSoundID_Vibrate); }
 
Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
like
03/12/12 04:03 PM (13 years ago)
So you would use the above code inside a plugin or screen? Just copy and paste?
 
XboxMods
buzztouch Evangelist
Profile
Posts: 718
Reg: Oct 28, 2011
location unknow...
12,080
like
03/12/12 05:19 PM (13 years ago)
Can this be added to a quiz to vibrate user on incorrect choice?
 
Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
like
03/12/12 05:20 PM (13 years ago)
That would be a good idea. If you figure out how, can you post it?
 
XboxMods
buzztouch Evangelist
Profile
Posts: 718
Reg: Oct 28, 2011
location unknow...
12,080
like
03/12/12 05:21 PM (13 years ago)
I will try, if I get it working, I will inform you all!
 
theGreek
Aspiring developer
Profile
Posts: 648
Reg: May 25, 2011
Schaumburg, IL
7,830
like
03/12/12 06:17 PM (13 years ago)
Maybe @dave can combine this with the other duplicate post I created... http://www.buzztouch.com/forum/thread.php?fid=CCC3E889E6AAF80F1DBB586&tid=CCC3E889E6AAF80F1DBB586
 
theGreek
Aspiring developer
Profile
Posts: 648
Reg: May 25, 2011
Schaumburg, IL
7,830
like
03/12/12 06:19 PM (13 years ago)
Raoul Check the duplicate post. i think someone indicated how to do that in a quiz...
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.