{"id":1314,"date":"2020-12-11T15:56:09","date_gmt":"2020-12-11T07:56:09","guid":{"rendered":"http:\/\/123.57.164.21\/?p=1314"},"modified":"2020-12-11T15:56:09","modified_gmt":"2020-12-11T07:56:09","slug":"ios14-widget%e5%b0%8f%e7%bb%84%e4%bb%b6%e5%bc%80%e5%8f%91%e5%ae%9e%e8%b7%b56-%e5%85%b3%e4%ba%8e%e7%bb%84%e4%bb%b6%e6%95%b0%e6%8d%ae%e5%88%b7%e6%96%b0%e9%97%b4%e9%9a%94%e9%97%ae","status":"publish","type":"post","link":"https:\/\/92it.top\/?p=1314","title":{"rendered":"iOS14 Widget\u5c0f\u7ec4\u4ef6\u5f00\u53d1\u5b9e\u8df56\u2014\u2014\u5173\u4e8e\u7ec4\u4ef6\u6570\u636e\u5237\u65b0\u95f4\u9694\u95ee\u9898"},"content":{"rendered":"\n<p>\u53d1\u73b0\u5f88\u591a\u4eba\u5bf9<code>Widget<\/code>\u7684\u6570\u636e\u5237\u65b0\u6709\u7591\u95ee\uff0c\u53d1\u73b0\u6709\u65f6\u5019\u4f1a\u6839\u636e\u8bbe\u7f6e\u7684\u65f6\u95f4\u95f4\u9694\u8fdb\u884c\u5237\u65b0\uff0c\u6709\u65f6\u5019\u53c8\u5dee\u8ddd\u5f88\u660e\u663e\uff0c\u7279\u522b\u662f\u4e0a\u7ebf\u7684\u5e94\u7528\u5728\u5237\u65b0\u95ee\u9898\u4e0a\u5927\u6982\u7387\u4e0d\u9075\u5b88\u4ee3\u7801\u8bbe\u7f6e\u3002\u7ffb\u4e86\u4e0b\u82f9\u679c\u5b98\u65b9\u5bf9\u8fd9\u4e2a\u95ee\u9898\u7684\u8bf4\u660e\uff0c\u5728\u95ee\u9898\u91cc\u9762\u770b\u5230\u4e86\u82f9\u679c\u6280\u672f\u4eba\u5458\u5bf9\u5f00\u53d1\u8005\u63d0\u95ee\u7684\u56de\u7b54\uff1a<\/p>\n\n\n\n<p><a rel=\"noreferrer noopener\" href=\"\" target=\"_blank\">https:\/\/developer.apple.com\/forums\/thread\/653265?answerId=619739022#619739022<\/a><br>Updating every minute is far too aggressive. Widgets have a limited number of updates and if you were to try to update every minute, you&#8217;ll quickly run out of updates. While debugging with Xcode these limits are not imposed, but if you&#8217;re running your app outside of Xcode you&#8217;d see the behavior you&#8217;re describing where your widget would stop updating.<br>What happens if you update every 15 minutes? If that doesn&#8217;t work, please file a Feedback Assistant report with the details of what you&#8217;re doing and the results you see.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u6839\u636e\u6709\u9053\u7ffb\u8bd1\u5927\u610f\u5982\u4e0b\uff1a<\/h4>\n\n\n\n<p>\u6bcf\u5206\u949f\u90fd\u66f4\u65b0\u592a\u6fc0\u8fdb\u4e86\u3002\u5c0f\u90e8\u4ef6\u7684\u66f4\u65b0\u6570\u91cf\u662f\u6709\u9650\u7684\uff0c\u5982\u679c\u4f60\u8bd5\u56fe\u6bcf\u5206\u949f\u66f4\u65b0\u4e00\u6b21\uff0c\u4f60\u5f88\u5feb\u5c31\u4f1a\u7528\u5b8c\u66f4\u65b0\u3002\u5728\u4f7f\u7528Xcode\u8fdb\u884c\u8c03\u8bd5\u65f6\uff0c\u8fd9\u4e9b\u9650\u5236\u4e0d\u4f1a\u88ab\u65bd\u52a0\uff0c\u4f46\u5982\u679c\u4f60\u5728Xcode\u4e4b\u5916\u8fd0\u884c\u4f60\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c\u4f60\u4f1a\u770b\u5230\u4f60\u63cf\u8ff0\u7684\u5c0f\u90e8\u4ef6\u505c\u6b62\u66f4\u65b0\u7684\u884c\u4e3a\u3002<br>\u5982\u679c\u4f60\u6bcf15\u5206\u949f\u66f4\u65b0\u4e00\u6b21\u4f1a\u53d1\u751f\u4ec0\u4e48?\u5982\u679c\u8fd9\u4e0d\u8d77\u4f5c\u7528\uff0c\u8bf7\u63d0\u4ea4\u4e00\u4e2a\u53cd\u9988\u52a9\u7406\u62a5\u544a\uff0c\u8be6\u7ec6\u8bf4\u660e\u4f60\u6b63\u5728\u505a\u4ec0\u4e48\u548c\u4f60\u770b\u5230\u7684\u7ed3\u679c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u53d1\u73b0\u5f88\u591a\u4eba\u5bf9Widget\u7684\u6570\u636e\u5237\u65b0\u6709\u7591\u95ee\uff0c\u53d1\u73b0\u6709\u65f6\u5019\u4f1a\u6839\u636e\u8bbe\u7f6e\u7684\u65f6\u95f4\u95f4\u9694\u8fdb\u884c\u5237\u65b0\uff0c\u6709\u65f6\u5019\u53c8\u5dee\u8ddd\u5f88\u660e\u663e\uff0c\u7279\u522b\u662f\u4e0a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"_links":{"self":[{"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/1314"}],"collection":[{"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1314"}],"version-history":[{"count":1,"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/1314\/revisions"}],"predecessor-version":[{"id":1315,"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/1314\/revisions\/1315"}],"wp:attachment":[{"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1314"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1314"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1314"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}