问题
My App is supported Today Extension,
I want to add a button to my app's settings view, so when the user clicks on it I switch the user to "Add Widget" view, i.e this view:
so the user can add the desired widget.
Is there a way to do that? or it's not possible?
Thanks.
回答1:
This is not possible. The only thing you can do is to tell your users about the widget and possibly how they can add a widget to the today view:
- Goto home screen
- swipe all to the left
- scroll to the bottom
- tap "Edit"
- tap "+" next to my super useful widget.
回答2:
Just swipe down to open notification center and add your widget as shown in below sample.
来源:https://stackoverflow.com/questions/46872673/how-to-open-add-widgets-view-from-app