你看看这两个方法 func widgetDidBeginEditing() Called when a user chooses the widget’s begin editing button. func widgetDidEndEditing() Called when a widget’s editing session ends.
你看看这两个方法