iOS simulator - trick to using TV Out? - ios

I'm using the iOS simulator from xcode 4.3.1,
and the "TV Out" option doesn't seem to be doing its thing.
I've tried it with a variety of simulated devices and tv resolutions,
but always just get a black screen.
Perhaps it doesn't support the default Mirroring which comes w/ the iPad 2 & 3 ?
That is, when i hook up a VGA cable to an actual iPad 2, i get a nice mirroring of the 'desktop' and whatever app i run.
Possibly the simulator only respects explicit video-out to screen 1 ?
eg:
UIScreen* secondScreen = [[UIScreen screens] objectAtIndex:1];
tia,
Orion

I found this forum post which pointed out that there's a problem with landscape showing up on the secondary screen for the simulator.
Every time I've tested outputting to a secondary screen seems to work in portrait, but not in landscape. Hope that helps!

Related

Why does my display look different on iPhone simulator vs. iPad simulator?

I am working on a puzzle app on Xcode Version 11.0. My app displays as expected on my physical iPad mini and also on the iPhone simulators, but if I use an iPad simulator it appears to switch the orientation to Portrait mode and display my secondary screen as a popup on top of the secondary screen (see the images below).
I am using an "Action Segue" to get from my 1st screen to my 2nd screen. I have tried several different options (Show, Show Detail, Show Modally, Present As Popover). The result is slightly different, but all of them give the "Portrait popup" look. I am guessing that this is a newer feature, and I just need to set some flag to avoid it, but I don't have any guesses on what to look for. Could anyone offer some help?
iPhone 8 Simulator (this is what I want it to look like)
iPad Simulator (with undesired Portrait popup appearance)
Edit the segue to be Show Modally and also Fullscreen (instead of Automatic).

UIToolbar not transparent on iPad2

This has been driving me nuts.
I have a toolbar on my iPAD application and its translucent property is set to 'YES'. I am doing this in my storyboard:
When I run on an iPad Air things look good. However if I run on an iPad 2 the toolbar is not translucent. I experience the same problem in the simulator and on an actual device.
This is also not a problem across different versions of the OS. IE no matter what OS I run (iOS 7 or iOS 8) its wrong on an iPad 2 but correct on an iPad Air.
Why????
Is there anything I can do to get a consistent L&F across these devices?
Translucency - which uses blur - is computationally expensive.
If you compare the control panel or notification menu between iPad 2 and iPad Air, - you will see that Apple has disabled translucency on the lower powered device as it can't really cope.
That applies to iPad2, iPad3, iPad mini and maybe some older iPhones and iPod Touches. Even higher-powered devices can give poor results if you over-use these effects.
If you need a completely consistent look and feel, you should resist using properties that take advantage of translucency and blur effects. Another option is to play around with view alpha, background colour and tint to get a semi-tranparent look on devices that don't support translucency.
For more information on device support for UIVisualEffect, which seems to coincide with 'translucency' property support on UI objects:
Check if device supports blur
Detect if device properly displays UIVisualEffectView?

Device orientation strange behavior

I have my Universal app ready and I set the device orientation to portrait only.
On the iPhone it's okay - only portrait, but on the iPads it is still can rotate to landscape. I double checked that I unticked the landscape left/right and left only portrait.
Actually it's not a big problem for me, because I use Auto Layout and it still looks okay when in landscape but maybe somebody can provide a reasonable explanation.
I use:
objective-c
XCode 6.1.1
testing devices iPhone 5c and iPad mini with Retina display
If somebody have a problem like I described above, just check the device orientations you need in ALL possible variants like iPhone/iPad/Universal.
Thanks #LyndseyScott

How can i get resolution of any ios device using AIR..?

I am using flash cs6. and AIR 14. I want to get iOS device resolution in AIR.
My code is:
var screenWidth:String = String(Capabilities.screenResolutionX);
var screenHeight:String = String(Capabilities.screenResolutionY);
By using this code I am getting desktop and android device resolutions correctly, but in case of iOS I am getting the wrong resolution.
Installed app on iPad 3 MODEL is MC705HN/A, the correct resolution is 2048-by-1536-pixel, but I am getting 1024/768.
This solved my problem.
Go into the App Descriptor XML file. Toward the bottom (generally one of the last items in the file), there should be this line.
standard
If it is commented out or set to "standard", this would be your issue. Change it to say "high" and that will enable Retina support. "standard" scales the non-retina display (320x480 on iPhone, 1024x768 on iPad) up. "high" will give you the correct display resolution.
You can also use stage.fullScreenWidth and stage.stageWidth. I think they work well in any device.

XCode 4.3.1 iPad simulator

Does anybody know why home button is missing for iPad simulator only?
Its a simple redesign to make more space for the simulator screen. You can trigger the home button from the menu Hardware > Home Or using the shortcut: ⇧⌘H.
I don't think this is an enhancement at all. This is by far a notorious bug and a bad one. I know that home button action can be reproduced by cmd-H or its double click by doing cmd-H twice, though it could activate the slow motion animations too (annoying!). My point here is that whenever you run the simulator and start testing doing rotations (cmd-arrows), at one point you won't be able to tell if iPad orientation is to the right or to the left!... there's no visual clue whatsoever!
Bad Apple!, bad Apple!
It appears it is looking at whether or not there is adequate screen resolution to display the bezel. For example, I have a 17" Macbok pro that I develop on (1920x1200 resolution). When I launch an iPad development project and the suimulator comes up on my Macbook pro's desktop, no problem, the bezel shows. But let's say I then drag it over to my external monitor which is 1920x1080, then quit and relauinch the simulator... it comes up without a bezel.
My co-worker who has a Macbook Pro 13" (lower resolution), never sees the bezel. I suspect the newer retina Macbook Pros will always show a bezel.
This is of course, al pertaining to the regular, non-retina iPad simulator. I am not sure if given adequate screen resolution, the iPad retina simulator would show a bezel or not?
See http://openradar.appspot.com/11017007 for the real answer: "Engineer who removed the bezel from scaled iOS Sim not thanked enough, probably"
I personally don't need more screen space for the simulator with my Thunderbolt 27" display. I'd like the frame back, thank you very much! I also noticed with this version the application icons often show as blank white icons, even for Safari and Photos.
No, but you can trigger it from the menu bar (Hardware -> Home).

Resources