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.
在 iOS 应用扩展(例如Today Widget )中,您可以在使用NSExtensionContext选择小部件时打开应用程序。只有在通过小部件打开应用程序后,有没有办法在应用程序中执行方法(移动到不同的 UI 视图)?
您将必须创建一个自定义 URL 方案,您的应用程序将注册该方案并根据该 URL 更改视图。
例子:myapp://action=showspecialview
myapp://action=showspecialview
然后,您的应用程序将启动并可以解析 URL 并在检测到showspecialviewURL 时执行特殊行为。
showspecialview