0
有誰知道如何採取下面的代碼,並使其在phonegap內工作?xcode - phonegap
// Override to allow orientations other than the default portrait orientation.
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
// Return YES for supported orientations
//return (interfaceOrientation == UIInterfaceOrientationPortrait);
if(UIInterfaceOrientationIsPortrait(interfaceOrientation)) {
return(YES);
}
if(UIInterfaceOrientationIsLandscape(interfaceOrientation)) {
return([movieController isFullscreen]);
}
return(NO);
}
我想基本上讓本土的ios媒體播放器的旋轉爲橫向模式,但留下我的應用程序的其餘部分在縱向模式。任何想法如何我可以做到這一點?先謝謝您的幫助!