我們知道這些簡單的步驟來鎖定/解鎖您的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
但如何才能編程做到這一點?