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.
当我向我的应用程序发送推送通知时,我一直在努力让它发挥作用。当用户打开它时,它只是将他们带到应用程序。我想将它们定向到特定的 uiview,我该怎么做?
application:didReceiveRemoteNotification:如果您的应用程序正在运行(无论是否在后台),则会调用该方法。
application:didReceiveRemoteNotification:
所以这将是引导他们到特定的起点UIView。
UIView
您可以在以下答案的代码中判断您的应用程序是否刚刚被带到前台
希望这可以帮助 。