Jump to content
Juan Martinez

Content not filling screen on iPhone 6

Recommended Posts

Hello

 

I am migrating my production application to Delphi 10.4 (Iphone/Ipad app).  I work with an Iphone 6s

 

I could do it easily but when I run the app on iphone6 the content does not fill the screen. There's a big black margin at the top and bottom. I also don't see the splash screen (all in black)

 

I tried another app and the same thing happens. 

 

I imagine that it could be due to some problem with the LauchScreen and storyboards theme but I don't know how to solve it

 

Has anyone tried your app on an iphone6 ?

 

I think there are some clues in the following links, but I don't know what I can do from Delphi

 

https://developer.apple.com/forums/thread/128138

 

The attached image is useful to understand the problem. I've tried putting it on fullscreen but the problem remains. 

 

Thanks. Iphone6-screenshot.thumb.png.3d3e39434d2f78e9bbcf391757db6968.png

Share this post


Link to post

Delete the info.plist.TemplateiOS.xml file and rebuild. Alternatively, make it look like this:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
  <%VersionInfoPListKeys%>
  <%ExtraInfoPListKeys%>
  <%StoryboardInfoPListKey%>
</dict>
</plist>

 

  • Thanks 1

Share this post


Link to post

Yes, as soon as you have the storyboard file created, it's going to be fullscreen.

If you have a storyboard file, delete it. Launch Delphi, select iOS as your target and run the app.

That should be enough

 

  • Like 1

Share this post


Link to post
On 7/7/2020 at 12:03 AM, Dave Nottage said:

Delete the info.plist.TemplateiOS.xml file and rebuild. Alternatively, make it look like this:


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
  <%VersionInfoPListKeys%>
  <%ExtraInfoPListKeys%>
  <%StoryboardInfoPListKey%>
</dict>
</plist>

 

Thank you very much David! 

 

You are great. 

Share this post


Link to post

There were cases that old or wrong Storyboard is cached by the phone.

What helps in my case, is re-create as explained above.
And remove app from phone, reboot phone, to be sure cache is deleted.

Then the new installation should show the current screen.

Share this post


Link to post
On 12/20/2020 at 8:35 PM, marcin71 said:

after implementing this solution i lost my splash screen. is anybody help me ?

Regards

Marcin

I have the exact same problem and deleting the cache and app, restarting the iphone did'nt help. Any advice?

Share this post


Link to post

Not sure if this is of any help, but I had similar problems.

 

After several unsuccessful attempts I tried this:

 

- Deleting ALL IOS stuff from the sourcedir (templates, directory iosdevice64, directory launchscreen.Template)

- Deleting ALL stuff regarding my app from the Mac

- Setting up newly all Icons in Projects/Options making sure that every icon (splash, app, launcher) have their own file

 

The last one in bold!. I cannot look behind the scenes where delphi collects the files for the deploy-list, but it seemed to me that that it would not add a source file if it was already there.

 

Lazy as I am, I used the same 1024x1024 for several images in the project/options/icons list. Only 1 appeared in the deploy-list.

When I gave every icon its own file, they all appeared in the deploy list.

 

- Rebuild, worked!

 

Share this post


Link to post
On 7/7/2020 at 12:03 AM, Dave Nottage said:

Delete the info.plist.TemplateiOS.xml file and rebuild. Alternatively, make it look like this:


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
  <%VersionInfoPListKeys%>
  <%ExtraInfoPListKeys%>
  <%StoryboardInfoPListKey%>
</dict>
</plist>

 

Hi Dave, thank you for this perfect answer, much appreciated.  Worked for me. 

  • Like 1

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×