In your template.cpp file you can use this line of code below to vibrate your iphone.
You need to make sure the AudioToolbox.framework is present which is already included in the template project.
AudioServicesPlaySystemSound (kSystemSoundID_Vibrate);
chunks