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.

Where Next?

Popular Pragmatic Bookshelf topics Top

brianokken
Many tasks_proj/tests directories exist in chapters 2, 3, 5 that have tests that use the custom markers smoke and get, which are not decl...
New
raul
Hi Travis! Thank you for the cool book! :slight_smile: I made a list of issues and thought I could post them chapter by chapter. I’m rev...
New
jskubick
I’m running Android Studio “Arctic Fox” 2020.3.1 Patch 2, and I’m embarrassed to admit that I only made it to page 8 before running into ...
New
digitalbias
Title: Build a Weather Station with Elixir and Nerves: Problem connecting to Postgres with Grafana on (page 64) If you follow the defau...
New
hazardco
On page 78 the following code appears: <%= link_to ‘Destroy’, product, class: ‘hover:underline’, method: :delete, data: { confirm...
New
akraut
The markup used to display the uploaded image results in a Phoenix.LiveView.HTMLTokenizer.ParseError error. lib/pento_web/live/product_l...
New
s2k
Hi all, currently I wonder how the Tailwind colours work (or don’t work). For example, in app/views/layouts/application.html.erb I have...
New
mert
AWDWR 7, page 152, page 153: Hello everyone, I’m a little bit lost on the hotwire part. I didn’t fully understand it. On page 152 @rub...
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
gorkaio
root_layout: {PentoWeb.LayoutView, :root}, This results in the following following error: no “root” html template defined for PentoWeb...
New

Other popular topics Top

malloryerik
Any thoughts on Svelte? Svelte is a radical new approach to building user interfaces. Whereas traditional frameworks like React and Vue...
New
axelson
I’ve been really enjoying obsidian.md: It is very snappy (even though it is based on Electron). I love that it is all local by defaul...
New
PragmaticBookshelf
A PragProg Hero’s Journey with Brian P. Hogan @bphogan Have you ever worried that your only legacy will be in the form of legacy...
New
AstonJ
Curious to know which languages and frameworks you’re all thinking about learning next :upside_down_face: Perhaps if there’s enough peop...
New
Exadra37
On modern versions of macOS, you simply can’t power on your computer, launch a text editor or eBook reader, and write or read, without a ...
New
Rainer
Not sure if following fits exactly this thread, or if we should have a hobby thread… For many years I’m designing and building model air...
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
PragmaticBookshelf
Rails 7 completely redefines what it means to produce fantastic user experiences and provides a way to achieve all the benefits of single...
New
New
AstonJ
This is cool! DEEPSEEK-V3 ON M4 MAC: BLAZING FAST INFERENCE ON APPLE SILICON We just witnessed something incredible: the largest open-s...
New

Sub Categories: