applicationWillEnterForeground& UIActivityViewController

时间:2015-06-02 13:28:56

标签: ios objective-c appdelegate

我的obj-c iOS应用程序存在问题。

我有一个主视图,当应用程序从后台重新进入前景时,通过applicationWillEnterForeground调用它。 问题是,当我使用UIActivityViewController在另一个应用程序(fx。消息)中打开一些内容时,这个外部应用程序会在我自己的顶部打开,因此,当我关闭外部应用程序时,我自己不在前台,applicationWillEnterForeground没有被调用。这会导致我的应用程序崩溃。

我正在寻找applicationWillEnterForeground的可能替代方案,告诉AppDelegate该应用是否为"在后台"来自UIActivityViewController的另一个应用。

有什么建议吗?

0 个答案:

没有答案