make button vibrate

How do I make a button vibrate?

@magicwong Something like this.

EDIT: Code removed.

I am not sure how your code makes the iPhone vibrate when the button is touched.

@magicwong It doesn’t. I totally misunderstood what you were asking.