rotate display in Simulator for tvOS app - xcode

I have a react native app that will be deployed to tvOS. Currently, I am building with the help of Apple's Simulator.
It is stuck in landscape mode, and the TV that will be deployed to is in portrait mode.
I cannot rotate the Simulator to portrait mode though, and I am stuck. I have spent an hour or so googling around and I cannot find an answer to how to rotate my tvOS app. The option is in Hardware > Rotate Left but it is greyed out.
How can I rotate my tvOS app 90 degrees?

At least so far, with tvOS 10.2. Only landscape orientation is supported by AppleTv.
As you can see, the definition of UIDeviceOrientation is flagged as __TVOS_PROHIBITED
typedef NS_ENUM(NSInteger, UIDeviceOrientation) {
UIDeviceOrientationUnknown,
UIDeviceOrientationPortrait, // Device oriented vertically, home button on the bottom
UIDeviceOrientationPortraitUpsideDown, // Device oriented vertically, home button on the top
UIDeviceOrientationLandscapeLeft, // Device oriented horizontally, home button on the right
UIDeviceOrientationLandscapeRight, // Device oriented horizontally, home button on the left
UIDeviceOrientationFaceUp, // Device oriented flat, face up
UIDeviceOrientationFaceDown // Device oriented flat, face down
} __TVOS_PROHIBITED;

Related

Xamarin iOS Splash Screen

Windows 10, Visual Studio 2019 (16.5.4).
I've been following this example:
https://learn.microsoft.com/en-us/xamarin/ios/app-fundamentals/images-icons/launch-screens?tabs=windows
Which is fairly straightforward. My splash screen is simply a blue background with my logo in the centre. However, I cannot work out how to centralise the logo on every iOS device and both portrait and landscape.
Do I have to create a different Asset or LaunchScreen.storyboard for every device?
The way I am familiar with that you can create a responsive design in iOS is to use the concept of AutoLayout.
But before you start that you should be aware of the basics of designing in iOS
Goodluck
Feel free to get back if you have queries
I cannot work out how to centralise the logo on every iOS device and both portrait and landscape.
In the designer you can grab the dot in the centre of the view and then drag it to the vertical or horizontal lines:
Check https://learn.microsoft.com/en-us/xamarin/ios/user-interface/designer/designer-auto-layout#center-constraints

Nativescript drawer does not render properly in iOS after device rotating

I have a NS app which uses a drawer (http://docs.telerik.com/devtools/nativescript-ui/Controls/NativeScript/SideDrawer/overview) as navigation.
One odd thing I noticed is that if rotate the device landscape and then back to potrait, the drawer's main content gets cut to the point that was visible while the device was in landscape mode. This only happens in iOS. It seems that the drawer content does not redraw after rotating back to portrait. If I navigate to another view (where the drawer is loaded again) everything looks good.
Steps to reproduce:
load the view
open the drawer - everything looks good
close the drawer
rotate device in landscape
rotate back in portrait
open drawer - the content is cut up to the point equivalent of the width of the device (the portion that would be visible when the device is in landscape mode)
Has anyone experienced this issue? Any ideas on how to solve it?
Thank you.

Is it possible to do an edge swipe in iOS simulator?

iOS 7 provides for a UIScreenEdgePanGestureRecognizer which detects swipes in from edges of the screen. Can this gesture be simulated using the iOS7 simulator in Xcode? Clicking and dragging outside the screen area just moves the whole simulator frame around.
On Simulator Version 11.4 I see the option
Window -> Show Device Bezels
which shows a virtual device frame around the simulated phone:
This allows to start the gesture "outside" of the screen. I could successfully trigger a UIScreenEdgePanGestureRecognizer from the left.
You don't have to swipe across the edges to trigger a UIScreenEdgePanGestureRecognizer, just start very close to the edge. It works if I start not more than ~15 points from the edge.
(this if for the simulator. I never tested this on a device)
As a side note: You have to create a gestureRecognizer for each edge. You can't OR edges together, so UIRectEdgeAll won't work.

iPad supported device orientations and landscape launch image

If neither (left or right) of the iPad landscape device orientations are supported, does the landscape launch image ever get shown?
I am currently working on a portrait orientation only app. I have not found a way to launch the app with the landscape launch image shown. So, i don't think that the landscape image will ever been shown. Still you should include it in your app bundle to pass the App Store approval process.

How to make an iOS app support landscape orientation in XCode?

How to make an iOS app support landscape orientation?
How do you make it support both landscape and portrait, where you can just press a button to activate it.
for any new people reading this old post just go to main.storyboard->click on the view controller click on simulated metrics (the fourth icon that pops up, looks kind of like a pentagon belt buckle)
then orientation->Landscape this is for Xcode 5

Resources