In Xcode 6.1 when i load the iPhone 6plus simulator along with the huge iPad simulators that all take up the full screen there is a scroll slider in the simulator. When i scroll the simulator a little to the right there is about a quarter of an inch black screen that covers the part that slides. When i did work in Xcode 5.1.1 for this app and iPad simulator loaded full screen it didn't have a scroll slider and it didn't have a black screen for that little part. However, now when i load the same iPad simulator in Xcode 6.1 there is that slider and the quarter of an inch black screen. Inside the storyboard the UIImageView is placed 414 width by 736 height covering the full storyboard so that's why I don't understand.Is that 1/4 inch black screen after scroll supposed to be there or does it mean my background UIImageView is not big enough to fit the entire simulator even though my UIImageView fits the entire storyboard?
Horizontal scrolling not working is a bug in the iOS Simulator in Xcode 6.1. The only workaround is to decrease your window zoom such that the contents fit in the entire window (thus making it so you don't need to scroll).
Related
I'm using Swift SpriteKit. This is my scene for an app I am currently making:
I made the width and height of the frame so it works with the iphone 7, but when I run it in the iPhone 7 simulator it looks like this:
How do I fix this?
If you mean the simulator is in horizontal orientation:
Open up the simulator, in the menu bar go to Hardware > Rotate Left/Right
I have developed a new app from scratch using Xcode 6.
I have built the app in the "Base" and I set the constraints for all iphones and works perfect.
When I run the app on iPhone 5 or iPhone 5S for iOS 7 I have a black space from the top of the screen but the app is fine for theses devices on iOS8. (I added all the launchimages for all iOS(7+8) and for all sizes.
This is a screenshot with the issue:
The problem was with the constraints of the ImageView. I remove them all and then I set the UIImageView to have equal width and height with the parent UIView. Then I set constraints to keep the UIImageView on the center - both vertically and horizontally.
Hi I have weird problem on iPhone6, iOS8 in iPhone simulator (unfortunately I don't have actual device to test yet).
I have background view whose bottom edge is exactly to top edge of UITabBar 0px overlap, background is in golden colour.
This problem only occurs on iPhone6, on iPhone6 plus and iPhone5 all is ok.
Tab bar on iPhone6 simulator:
Same tabbar on iPhone6 Plus simulator:
Same on iPhone5:
Anyone experienced anything similar?
Do you have any suggestion how to fix this?
Should I ignore it, if its simulator only issue?
Did you check the #3x, #2x, #1x image size? sometimes is has an issue with those assets.
When I run the iPhone retina simulator in Xcode it stops if from moving above the top of the screen, but the simulator window is bigger than my monitor, so I can't see what's at the bottom of the simulator window, how can I change things so I can move it upwards off the top of the monitor screen?
You can always use cmd+2 or cmd+3 to fit simulator to your screen.
You can scroll the Display of the Simulator with the two-finger scroll.
Can look like this on a 15" retina
Thank you for reading this.
I created a brand new project in Xcode 4 (Window based kind) and tried to get the splash screens working.
If I click on the blue icon of my project (top of the project hierarchy) and then click on "Target/Project", I see that I can drag and drop two launch images to use them as splash screens.
My portrait picture is a 768 x 1004 px png file and my landscape picture is a 1024 x 748 png file.
When I drop the portrait picture, everything looks fine but when I do the same with the landscape picture, I have a big yellow exclamation point that appears.
If I hover my mouse pointer long enough on the exclamation point, it says:"
the size of the launch image for iPad in landscape mode does not match
the recommended size of 1024 x 748 pixels
".
Just to be sure, I verified in Photoshop and a mac buit-in application and both do say my image is a png file of 1024 x 748.
I tried another picture and got the same message. I created a new Xcode project and also got the same message.
When I build and run the minimalistic project in the iPad simulator, I get the portrait splash vertically in Portrait orientation (ok) and the portrait splash horizontally in Landscape mode (not ok).
What can I do?
Just for you to know:
When I go to the Project-Info.plist, I do see "Supported Interface Orientations (iPad)" and it has 4 items:
Portrait (Bottom home button)
Portrait (top home button)
Landscape (left home button)
Landscape (right home button)
I also copied manually the 5 following files at the root of the project but it didn't help
Default-Landscape~ipad.png
Default-Portrait~ipad.png
Default-LandscapeLeft~ipad.png
Default-LandscapeRight~ipad.png
Default-PortraitUpsideDown~ipad.png
Whatever I do, it just recognizes the portrait picture and uses them for each orientation...
At this point, my project is very minimal and is just made of an appDelegate "h" and "m" file and a "mainWindow.xib" file, that's it (I didn't edit any of them yet).
Any clue?
Thank you.
Edit: try making the image 748x1024 instead of 1024x748 as suggested here.
From SO question - iPad Launch image landscape:
If you're on Xcode 4.0.2+ then the landscape iPad launch image needs
to be 748 * 1024. This is how it works in one of my apps.
Also, Upgrading to xcode 4.1 will fix the big yellow warning you get even when an image is the correct size.
The warning is also different based on your plist setting for "Status Bar is initially hidden" or not. If it's hidden, then it needs to be 1024x768, it not hidden then 1024x748... etc.