简体   繁体   English

如果我使用 Xamarin.Essentials Preferences 存储数据,我可以检索该数据以修改 iOS LaunchScreen.Storyboard 上的文本颜色吗?

[英]If I store data using Xamarin.Essentials Preferences, can I retrieve that data to modify text color on an iOS LaunchScreen.Storyboard?

If using Xamarin.Essentials Preferences class to store application preferences in a key/value store.如果使用 Xamarin.Essentials Preferences class 将应用程序首选项存储在键/值存储中。

Preferences.Set("my_key", "my_value");

Then can I get this back as my iOS application starts in time to modify the color of some text I have on the LaunchScreen.Storyboard and if so how can I do this.然后我可以在我的 iOS 应用程序及时启动以修改我在 LaunchScreen.Storyboard 上的某些文本的颜色时将其取回吗?如果可以,我该怎么做。

Please NOTE, there's a similar question / answer on SO that's now over 9 years old with an answer pointing to links that no longer exist.请注意,SO 上有一个类似的问题/答案,现在已经超过 9 年了,答案指向不再存在的链接。

Impossible, we can't handle any logic in code behind with launch screen.不可能,我们无法处理带有启动屏幕的代码中的任何逻辑。

In other word, the view(UI elements) you set in launch screen storyboard must be static, can't be changed.也就是说,您在启动画面 storyboard 中设置的视图(UI 元素)必须是 static,无法更改。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何找到“LaunchScreen.storyboard”的背景颜色代码? - How can I find the background color code for the "LaunchScreen.storyboard"? Xamarin IOS LaunchScreen.Storyboard无法为“图像”视图选择图像 - Xamarin IOS LaunchScreen.Storyboard cant select image for Image view LaunchScreen.storyboard中的SuperScript(适用于iOS的Xamarin.Forms中的AttributedString) - SuperScript in LaunchScreen.storyboard (AttributedString in Xamarin.Forms for iOS) 如何使用 Xamarin.Essentials:文件选择器从 Icloud 驱动器打开 txt 文件? - How can I open txt file from Icloud drive using Xamarin.Essentials: File Picker? Xamarin Studio:LaunchScreen.storyboard不存在 - Xamarin Studio : LaunchScreen.storyboard does not exists iOS Launchscreen.storyboard图像未显示 - iOS Launchscreen.storyboard Image not showing iOS禁用Landscape LaunchScreen.storyboard - iOS Disabling Landscape LaunchScreen.storyboard LaunchScreen.storyboard无法替换图像 - LaunchScreen.storyboard can’t replace image 单个 Launchscreen.storyboard 启动画面未按比例显示在 Xamarin Z645024253191298AE688A3 中的各种 iOS 设备中 - Single Launchscreen.storyboard splash image not displaying proportionally in various iOS devices in Xamarin Forms CompileStoryboard LaunchScreen.storyboard - CompileStoryboard LaunchScreen.storyboard
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM