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.
从后台删除应用程序时如何捕获事件?
目前尚不清楚您的意思是实际从设备中删除应用程序还是只是终止正在运行的进程。但无论哪种方式,答案都是一样的:
你不能。
如果您要记录任何状态,则需要在应用程序进入后台时进行,而不是在应用程序被终止时进行。
文档说applicationWillTerminate: 可以调用。我从未见过这种情况发生。
applicationWillTerminate:
I'm using the [object] tag to display the text of a .txt file. The object is within a div. When the object loads the text it sets up in a frame, which I can define height and width. However, set