GilWright

GilWright

Apple Game Frameworks and Technologies: Screen image may be wrong (p 13)

Working through the steps (checking that the Info,plist matches exactly), run the demo game and what appears is grey but does not fill the landscape screen when run in the simulator against an iPhone 11 Pro Max (as recommended earlier in the text). This may be an Xcode related problem. I have noted occasional problems with the menu bar not going away but this time the actual grey box is not filling the screen - it actually looks like a scaled down iPad screen. It works correctly on any of the iPads that I tested.

Xcode 12.0 beta 4 on MacOS 11 (20A5343i)

Marked As Solved

Paradox927

Paradox927

Author and Editor at PragProg

Hey, there! Sorry for the delayed response. I thought I had notifications set up for Devtalk, but I guess not.

Anyway, with Xcode 12, at least the beta version, you’ll need to add a new plist entry, “Launch screen interface file base name”. You can either add this entry and set its value to “Main” or create a custom LaunchScreen.storyboard file and set its value to “LaunchScreen”.

If that doesn’t work, let me know. I may have misunderstood the problem/question.

Also Liked

GilWright

GilWright

Same comment applies to the screen shot on p15 - it is still the aspect ratio of an iPad with black bars to the left and right.

GilWright

GilWright

Adding the debug on scene.size - the 11 Pro Max reports 480x320, iPad Pro 12.9" reports 1024x768, iPhone 11 Pro (not Max, real phone) reports 480x320.

cocojas

cocojas

I’ve also created a bug with Apple that the game template doesn’t set itself up correctly. The multi-target game template does, so I think it’s just a miss on their part, or they can’t decide whether they want to use a launch storyboard or the new info plist dictionary to set it up.

Popular Prag Prog topics Top

telemachus
Python Testing With Pytest - Chapter 2, warnings for “unregistered custom marks” While running the smoke tests in Chapter 2, I get these...
New
johnp
Hi Brian, Looks like the api for tinydb has changed a little. Noticed while working on chapter 7 that the .purge() call to the db throws...
New
ianwillie
Hello Brian, I have some problems with running the code in your book. I like the style of the book very much and I have learnt a lot as...
New
herminiotorres
Hi! I know not the intentions behind this narrative when called, on page XI: mount() |> handle_event() |> render() but the correc...
New
jskubick
I found an issue in Chapter 7 regarding android:backgroundTint vs app:backgroundTint. How to replicate: load chapter-7 from zipfile i...
New
dsmith42
Hey there, I’m enjoying this book and have learned a few things alredayd. However, in Chapter 4 I believe we are meant to see the “>...
New
EdBorn
Title: Agile Web Development with Rails 7: (page 70) I am running windows 11 pro with rails 7.0.3 and ruby 3.1.2p20 (2022-04-12 revision...
New
Keton
When running the program in chapter 8, “Implementing Combat”, the printout Health before attack was never printed so I assumed something ...
New
dtonhofer
@parrt In the context of Chapter 4.3, the grammar Java.g4, meant to parse Java 6 compilation units, no longer passes ANTLR (currently 4....
New
dachristenson
I just bought this book to learn about Android development, and I’m already running into a major issue in Ch. 1, p. 20: “Update activity...
New

Other popular topics Top

Devtalk
Hello Devtalk World! Please let us know a little about who you are and where you’re from :nerd_face:
New
AstonJ
Or looking forward to? :nerd_face:
New
Exadra37
I am thinking in building or buy a desktop computer for programing, both professionally and on my free time, and my choice of OS is Linux...
New
Rainer
My first contact with Erlang was about 2 years ago when I used RabbitMQ, which is written in Erlang, for my job. This made me curious and...
New
AstonJ
There’s a whole world of custom keycaps out there that I didn’t know existed! Check out all of our Keycaps threads here: https://forum....
New
Exadra37
Oh just spent so much time on this to discover now that RancherOS is in end of life but Rancher is refusing to mark the Github repo as su...
New
wmnnd
Here’s the story how one of the world’s first production deployments of LiveView came to be - and how trying to improve it almost caused ...
New
AstonJ
If you get Can't find emacs in your PATH when trying to install Doom Emacs on your Mac you… just… need to install Emacs first! :lol: bre...
New
New
PragmaticBookshelf
Author Spotlight Rebecca Skinner @RebeccaSkinner Welcome to our latest author spotlight, where we sit down with Rebecca Skinner, auth...
New

Latest in PragProg

View all threads ❯