How to lock the device orientation?

Hi,

when rotating the iPhone / iPad I see a black mask comming in, rotating 90 degrees and fading out again. I think its the apples mask for changing the device orientation. How can I remove this black mask? My App should not support device orientation changes since I need the accelerometer to control grovy game stuff. How to disable this? Do I have to lock somehow the device orientation and if so, how would I do that?

   iPhoneKeyboard.autorotateToPortrait = false; 
   iPhoneKeyboard.autorotateToPortraitUpsideDown = false; 
   iPhoneKeyboard.autorotateToLandscapeLeft = false; 
   iPhoneKeyboard.autorotateToLandscapeRight = false;

I found may be a solution that is working :

http://forum.unity3d.com/viewtopic.php?t=56405&sid=7bfd7044cf75f131f14c77c0bc15fc26

ty