Turning off the status bar in Xcode does not work in iPad

Techvy,
I have a question. After turning off the status bar, Xcode told me that it won't work in iPad. I would also like to switch off the status bar in my other UIKit based code.
How does Cocos2D do this?
Kindly reply urgently.
David
