8.5 C
Canberra
Tuesday, July 22, 2025

visible studio 2022 – Utilizing .Internet 8 for iOS [NOT MAUI], add a LaunchScreen with emblem picture and background colour


Objective:

Create a splash display (“LaunchScreen”) for a “.Internet 8 for iOS” C# app (successor to “Xamarin Native / iOS”).

The splash display incorporates a picture (a emblem) scaled to fill (sustaining facet ratio) the display, with a small margin.

Requirement:

  • Do not depend on any Microsoft instruments on mac (e.g. VS Code + .Internet extension). On the mac, solely use Xcode.

Rationale: As a lot as attainable, work on the PC. Decrease reliance on putting in/studying/sustaining instruments on the Mac.

HOWEVER, if the solely [Microsoft] resolution is to make use of these Microsoft instruments on the mac, then that might be a helpful reply.

(NOTE: JetBrain’s Rider on mac allegedly can do that simply. I’ve not verified that myself, nor verified that Rider is up-to-date with newest xcode and ios variations.)


What I’ve performed:

  • Use Xcode to create a local app (Goal-C or Swift). Specify LaunchScreen as storyboard. Set background colour to Blue. Add a .png picture file to mission. Add a UIImageView to the LaunchScreen, and choose that .png. Run native app.

Success: See .png on blue background, then essential view of app.

Testing each on iOS (17.2 and 18.1) Simulator on mac, and on an iPad (iOS 18.3.2) connected to mac.

Xcode 16.1. [There doesn’t appear to be any Xcode problem; I doubt upgrading or downgrading would help.]


The place I’m caught:

Get that very same LaunchScreen.storyboard + .png file to work in .Internet 8 C# mission in Visible Studio 2022, deployed from Home windows to mac by way of “Pair to mac”.

This “ought to” be a simple activity.


What I’ve tried:

I can copy launchimage.png, and LaunchScreen.storyboard from (working) native Apple Swift mission again to the C# mission.

data.plist incorporates:

    UILaunchStoryboardName
    LaunchScreen

Nevertheless, when the LaunchScreen ought to seem, there may be merely a black display. I do not even see the Blue background colour I set, not to mention the picture. [After the black screen, the app’s main screen appears.]

  • I’ve tried setting numerous “Construct” choices in VS Answer Explorer Properties. For LaunchScreen.storyboard and launchimage.png. Nevertheless, since this isn’t a Maui mission, I have never discovered any setting that works. Additionally observe that Major.storyboard doesn’t require any .csproj construct motion. [I presume the files are all sent to Xcode on the mac, with a build script that does what is needed for storyboards.]

NOTE: If this had been a MAUI cross-platform app, this is able to be simple. There’s a MAUI choice to create a easy launch display with emblem. That works for me, in a unique app take a look at. However that is not relevant to this replace of a “Xamarin Native / iOS” app.

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

[td_block_social_counter facebook="tagdiv" twitter="tagdivofficial" youtube="tagdiv" style="style8 td-social-boxed td-social-font-icons" tdc_css="eyJhbGwiOnsibWFyZ2luLWJvdHRvbSI6IjM4IiwiZGlzcGxheSI6IiJ9LCJwb3J0cmFpdCI6eyJtYXJnaW4tYm90dG9tIjoiMzAiLCJkaXNwbGF5IjoiIn0sInBvcnRyYWl0X21heF93aWR0aCI6MTAxOCwicG9ydHJhaXRfbWluX3dpZHRoIjo3Njh9" custom_title="Stay Connected" block_template_id="td_block_template_8" f_header_font_family="712" f_header_font_transform="uppercase" f_header_font_weight="500" f_header_font_size="17" border_color="#dd3333"]
- Advertisement -spot_img

Latest Articles