2011-07-27 18 views
0

我想創建基於iPad的Wi​​ndows應用程序,它支持定位默認情況下,Windows應用程序不支持定位如何在iPad中基於Windows的應用程序中啓用定位支持。基於Windows的iPad應用程序定位

謝謝

+0

第1步:閱讀iOS應用程序編程指南 – jtbandes

回答

0

該窗口沒有旋轉功能。這是在肖像模式下的延遲。如果你想使用設備旋轉某些東西,你應該使用UIViewController。它必須實現方法shouldAutorotateToInterfaceOrientation併爲您的方向返回true或將其移除以適應所有方向。

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { 
    // Return YES for supported orientations 
    return (interfaceOrientation == UIInterfaceOrientationLandscapeRight); 
} 

您還應該在項目設置中更改它(ProjectName-Info.plist)。

相關問題