草庐IT

Landscape

全部标签

ios - 原力风景 ios 7

我尝试了以下方法来强制景观影响我的观点:-(NSUInteger)supportedInterfaceOrientations{returnUIInterfaceOrientationMaskLandscape;}-(UIInterfaceOrientation)preferredInterfaceOrientationForPresentation{returnUIInterfaceOrientationLandscapeLeft;}-(BOOL)shouldAutorotate{returnYES;}都没有用。请注意,我正在模拟器和iPad上进行测试。谢谢

ios - 在风景中呈现模态 VC 时,父 VC 的安全区域发生变化

当我呈现仅支持横向方向的SecondViewController时,第一个UIViewController中的安全区域插入更改为横向安全区域插入。GIFwithdescribedbugGIFwithdescribedbugthattouchesTabBarandTableView第一ViewController:classViewController:UIViewController{@IBActionfuncshowSecondVC(_sender:Any){letstoryboard=UIStoryboard(name:"Main",bundle:nil)letcontroller

ios - 在风景中呈现模态 VC 时,父 VC 的安全区域发生变化

当我呈现仅支持横向方向的SecondViewController时,第一个UIViewController中的安全区域插入更改为横向安全区域插入。GIFwithdescribedbugGIFwithdescribedbugthattouchesTabBarandTableView第一ViewController:classViewController:UIViewController{@IBActionfuncshowSecondVC(_sender:Any){letstoryboard=UIStoryboard(name:"Main",bundle:nil)letcontroller

ios - 在界面生成器中更改为横向。 Xcode 4 (iOS)

我正在开发一个横向的iPad应用程序。但是我如何更改以使界面生成器中的窗口处于横向状态?我记得在旧的InterfaceBuilder中,我只需要点击一个箭头,它就会切换到横向。我正在使用Xcode4。提前致谢!:) 最佳答案 在UI设计器中,选择最上面的项目(主视图),选择右侧的属性检查器,然后选择横向选项。 关于ios-在界面生成器中更改为横向。Xcode4(iOS),我们在StackOverflow上找到一个类似的问题: https://stackover

ios - 在界面生成器中更改为横向。 Xcode 4 (iOS)

我正在开发一个横向的iPad应用程序。但是我如何更改以使界面生成器中的窗口处于横向状态?我记得在旧的InterfaceBuilder中,我只需要点击一个箭头,它就会切换到横向。我正在使用Xcode4。提前致谢!:) 最佳答案 在UI设计器中,选择最上面的项目(主视图),选择右侧的属性检查器,然后选择横向选项。 关于ios-在界面生成器中更改为横向。Xcode4(iOS),我们在StackOverflow上找到一个类似的问题: https://stackover

ios - AVCaptureVideoPreviewLayer 横向

如何让“AVCaptureVideoPreviewLayer”在横向方向上正确显示?它在纵向模式下工作正常但不旋转,并且当父ViewController处于横向模式时显示旋转的相机捕获。 最佳答案 先说答案-(void)viewWillLayoutSubviews{_captureVideoPreviewLayer.frame=self.view.bounds;if(_captureVideoPreviewLayer.connection.supportsVideoOrientation){_captureVideoPreviewL

ios - AVCaptureVideoPreviewLayer 横向

如何让“AVCaptureVideoPreviewLayer”在横向方向上正确显示?它在纵向模式下工作正常但不旋转,并且当父ViewController处于横向模式时显示旋转的相机捕获。 最佳答案 先说答案-(void)viewWillLayoutSubviews{_captureVideoPreviewLayer.frame=self.view.bounds;if(_captureVideoPreviewLayer.connection.supportsVideoOrientation){_captureVideoPreviewL

ios - MPMoviePlayerViewController |允许横向模式

我正在尝试在我的应用程序中流式传输视频。我找到的方法是:NSURL*theMovieURL=[NSURLURLWithString:self.data.trailer];if(theMovieURL){self.movieController=[[MPMoviePlayerViewControlleralloc]initWithContentURL:theMovieURL];[selfpresentMoviePlayerViewControllerAnimated:self.movieController];[self.movieController.moviePlayerplay];

ios - MPMoviePlayerViewController |允许横向模式

我正在尝试在我的应用程序中流式传输视频。我找到的方法是:NSURL*theMovieURL=[NSURLURLWithString:self.data.trailer];if(theMovieURL){self.movieController=[[MPMoviePlayerViewControlleralloc]initWithContentURL:theMovieURL];[selfpresentMoviePlayerViewControllerAnimated:self.movieController];[self.movieController.moviePlayerplay];

ios - iPad Landscape 和 Portrait 具有 Size Class 的不同布局

如何使用Size类设计具有不同布局的iPad横向和纵​​向屏幕。对于两个方向,我只能找到w-regular和h-regular。示例:我需要使用SizeClass纵向对齐2个View,横向对齐2个View 最佳答案 终于找到了解决办法:iftraitCollection.verticalSizeClass==.Regular&&traitCollection.horizontalSizeClass==.Regular{varorientation:UIInterfaceOrientation=UIApplication.shared