Is there a way to disable the rotating black border when rotating the iphone?

Since my iOS game is played only in portrait mode, I don't see any reason for the accelerometer to work (and consume energy). Plus, whenever I rotate the device, I see this black border that rotates to the new orientation, which is a bit annoying.

So, is there a way to disable the accelerometer?

Change the "`#define kAccelerometerFrequency`" line in the AppController.mm file from 60 to 0. http://unity3d.com/support/documentation/Manual/iphone-Optimizing-MainLoop.html

there is no way to disable accelerametor using unity's api and i don't know about the apple objective c one. but i think it's the hardware that always works and cosume power if you want it or not. don't check and use it in your code.

about black borders i should say that they are possible to be disabled in code. you should just disable keyboard rotation. use iphoneKeyboard.autorotateX properties. there are different ones for different directions.