Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个按钮和一个图像。当用户单击按钮时,图像会显示,但当用户在强制关闭后重新打开应用程序时,图像不会显示。但是我想确保单击按钮时无论如何都应该永远显示它。
我认为您可以将图像状态存储在首选项或某个地方。当您再次启动应用程序时,您可以判断显示/隐藏图像的值。