我々は/ロックする簡単な手順は、あなたのiPhone 3Gの向きのロックを解除することを知っている:iPhoneの向きロックをプログラムでロック/アンロックする方法は?
From any screen, double-tap the home button
Scroll as far left as you can on the multitasking dock
The first symbol to the left will be a circular arrow
Select this to either lock or unlock the orientation of your iPhone 3G
しかし、どのように我々はプログラム的にこれを行うことができますか?