- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation {
// Return YES if incoming orientation is Portrait
// or either of the Landscapes, otherwise, return NO
return (toInterfaceOrientation == UIInterfaceOrientationPortrait) || UIInterfaceOrientationIsLandscape(toInterfaceOrientation);
}
Run Code Online (Sandbox Code Playgroud)
'||'是什么 这意味着什么
| 归档时间: |
|
| 查看次数: |
158 次 |
| 最近记录: |