objective c - How to update widget UI on data change iOS 8 Today Extension -
i need confirm these things
- does widgetperformupdatewithcompletionhandler called notification center self or manually call in way?
- if don't have widgetperformupdatewithcompletionhandler control how can update data on data change (i using service fetch json feeds url)
here have noticed.
- widgetperformupdatewithcompletionhandler called once when widget loaded.
- viewwillappear/didappear called on switching between today , notification.
though have read tutorials , other stuffs specific point unable understand. haven't pasted code here it's more of conceptual thing.
kindly share knowledge ncwidgetproviding delegates.
updated: enable widget update view when it’s off-screen make following changes widgetperformupdatewithcompletionhandler
. the system takes snapshot of widget , periodically, try update it. if updates successfully, function calls system-provided completion block ncupdateresult.newdata enumeration. if update wasn’t successful, existing snapshot used.
Comments
Post a Comment