Today Extension view flashes when redrawing

前端 未结 2 757
甜味超标
甜味超标 2020-12-09 11:26

According to Apple documentation, \"To help your widget look up to date, the system occasionally captures snapshots of your widget’s view. When the widget becomes visible ag

2条回答
  •  执念已碎
    2020-12-09 12:16

    You need to be careful about your compilation handler in the

    -(void)widgetPerformUpdateWithCompletionHandler:(void (^)(NCUpdateResult))completionHandler

    method. What happens is that your extension probably has an error and everytime view appers it is being called again. Try to attach your extension to debugger(Debugger->Attach to Process-> your extension id) and see the result by putting some breakpoints.

提交回复
热议问题