I am developing a iOS app with xamarin. If I debug it in a physical machine (iPad) or a iPad simulator, it only shows a white screen. But it works if I debug with iPhone simulator.
What is the cause of the issue?
Thanks.
Updates :
I found that it is due to the project only have an iPhone view. And it leads to another question - When I would like to change the width and height of content in iPad view, all views will change at the same time. Does it mean I need to create different storyboard for each screen size?
Thanks.
The white screen issue is related to the zoom level on your simulator. On the Simulator, look at the Window menu and it will be either Zoom or Scale. Try setting Scale to 50%.
Related
I am adapting an iPad app (originally built on Objective C/Swift) for the iPhone.
I have removed all things from the UI, the only things left are:
Blue fill - the navigation bar
Red fill - the toolbar
The app appears to have the screen's aspect ratio somehow hard coded for the iPad. I am unable to make the app occupy the full screen using both the interface builder and directly editing the code of the UIViewController.
Doesn't work on iPhone X 11.4 and iPhone 5 9.3, works only on the iPad family.
The issue seems to be outside of the UIViewController or even the UINavigationController.
What project setting may be causing this issue?
iPhone is allowed in Xcode, Targeted Device Family is resolved as 1, 2 for the whole project
Requires full screen is checked for iPhone
The app on various iPhones:
Interface builder - all seems fine there:
Please check for launch images. You need to provide the all sizes of the launch image which are not provided.
You can also add missing sizes from the utilities bar.
My App is iPhone only and it works great on iPhone device. It got rejected by Apple with below message:
iPhone Apps must also run on iPad without modification, at iPhone
resolution, and at 2X iPhone 3GS resolution
When I run my app on iPad it's cutting part of the navigator at the top. Attached is the screen print.
Anyone got any clue how to fix it?
I think you navigation bar is covered because its position is lower than the 20point reserved for the status bar. To check its position, click on the navigation item or bar, go to Size Inspector and under View, you will see the X & Y positions. Or you can set constraints for it. I hope this helps.
Actually I solved this problem long back but missed to update the solution here. I was getting this issue on iPad because it doesn't use status bar as like iPhone for iPhone app. So I did leave the status bar space at the top of the view controller. Also, this issue occurs only for standalone ViewController and if we use Navigation ViewController, issue is automatically resolved.
I have created view using autolayout it works fine in all iPhone devices but it left some blank space at left, right, top and bottom on iPad.I tried to make another xib specially for iPad which is 768*1024 but still facing same problem.
here is the screenshot of iPad output.
The problem is that you forgot to make this a universal app. So it is running on the iPad in emulation mode as an iPhone app in a reduced frame.
I am developing an application for iOS with Xamarin Studio and when I try the app out on my iPhone and in the simulator, there are two horizontal bars at the top and bottom when the device is tilted in landscape orientation. I've seen some people have said that you need to add a launch image and name it Default-568h#2x, but that doesn't solve my problem.
Also I tried deleting and resetting content on the simulator and cleaned my project. Usually I see posts about the iPhone5 letter-boxing causing problem for some people, but for me it's the iPhone4 and 4s which is causing the problem. Anyone have any other ideas on what might be the problem?
You're using the iPhone 4 simulator. The image is being resized with fixed aspect, thus the letterboxing. Did you include a 640x960 Default#2x.png launch image?
I have been designing a app on xcode over the past week but I have encountered a problem. When I run the app on iPhone simulators (3.5 inch and 4 inch) my game is scrollable when it shouldn't be. I want my app to be displayed on full screen of iPhone with no scrolling.
I have not changed any of the settings in storyboard so I am starting to think maybe its a problem with the simulator?
Anyone have any ideas of what's wrong and how I could correct this? Any help would be appreciated
The question is pretty vague (how are you "designing" the game? With SpriteKit? UIKit?) but here is some reading material that should get you pointed in the right direction:
- AutoLayout
- Autosizing
I think this is just an issue with the simulator. It seems like if the resolution of the screen is below a certain amount, it shrinks the simulator window to fit, and then you have to scroll around inside the simulator to see the whole VIEW. I noticed this issue because my Macbook has a small screen. But when running on an actual device, it takes up the whole screen as it should. You could try using different simulated devices with smaller screens to see if it still does it.