{"id":40266,"date":"2025-05-28T13:43:10","date_gmt":"2025-05-28T05:43:10","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/40266.html"},"modified":"2025-05-28T13:43:10","modified_gmt":"2025-05-28T05:43:10","slug":"ios%e7%9f%a5%e8%af%86%e5%a4%8d%e4%b9%a0","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/40266.html","title":{"rendered":"iOS\u77e5\u8bc6\u590d\u4e60"},"content":{"rendered":"<\/p>\n<\/p>\n<p>block\u539f\u7406<\/p>\n<p>OC block \u662f\u4e2a\u7ed3\u6784\u4f53&#xff0c;\u5185\u90e8\u6709\u4e2a\u4e00\u4e2a\u7ed3\u6784\u4f53\u6210\u5458 \u4e13\u95e8\u4fdd\u5b58 \u6355\u6349\u5bf9\u8c61<\/p>\n<p>Swift\u95ed\u5305 \u662f\u4e2a\u51fd\u6570&#xff0c;\u6355\u83b7\u4e86\u5168\u5c40\u4e0a\u4e0b\u6587\u7684\u5e38\u91cf\u6216\u8005\u53d8\u91cf<\/p>\n<p>\u4fee\u6539\u6570\u7ec4\u5b58\u50a8\u7684\u5185\u5bb9&#xff0c;\u4e0d\u9700\u8981\u52a0_block,\u4fee\u6539\u6570\u7ec4\u5bf9\u8c61\u672c\u8eab\u65f6\u9700\u8981<\/p>\n<\/p>\n<p>weak\u539f\u7406<\/p>\n<p>Weak \u54c8\u5e0c\u8868 &#xff08;\u6563\u5217\u8868&#xff09;&#xff0c;\u4e00\u4e2a\u5173\u952e\u5b57 \u6620\u5c04\u51e0\u4e2a\u5b58\u50a8\u503c&#xff0c;\u63d0\u9ad8\u67e5\u8be2\u6548\u7387&#xff0c;\u91ca\u653e\u65f6\u5019\u904d\u5386\u91ca\u653e<\/p>\n<p>\u5f15\u7528\u8ba1\u6570retaincount\u7684\u503c \u5b58\u5728 isa\u6307\u9488\u4e2d&#xff0c;\u8fc7\u5927\u4f1a\u5b58\u5728\u4e00\u4e2asidetable\u4e2d<\/p>\n<p>Isa\u6307\u9488\u662f\u6307\u5411\u5bf9\u8c61\u6240\u5c5e\u7c7b\/\u5143\u7c7b\u7684\u6307\u9488&#xff0c;\u6bcf\u4e2a\u5bf9\u8c61\u90fd\u6709\u4e00\u4e2aisa\u6307\u9488<\/p>\n<p>Weak\u4f1a\u81ea\u52a8\u7f6e\u4e3anil&#xff0c;unsafe unretain\u4e0d\u4f1a&#xff0c;\u5bb9\u6613\u51fa\u73b0\u91ce\u6307\u9488<\/p>\n<\/p>\n<p>category\u539f\u7406<\/p>\n<p>category_t\u7684\u7ed3\u6784\u4f53&#xff0c;\u5b58\u50a8\u7c7b\u540d&#xff0c;\u65b9\u6cd5\u5217\u8868<\/p>\n<p>\u8fd0\u884c\u65f6\u6dfb\u52a0\u65b9\u6cd5&#xff0c;\u540c\u540d\u65b9\u6cd5\u4f1a\u5b58\u653e\u5728\u524d\u9762&#xff0c;\u5bfc\u81f4\u6267\u884c\u65f6\u6267\u884c\u4e86category\u7684\u65b9\u6cd5<\/p>\n<\/p>\n<p>objc_msgSend(receiver, selector)<\/p>\n<p>\u5bf9\u8c61\u662f\u52a8\u6001\u7c7b\u578b&#xff0c;\u53ef\u4ee5\u5728\u8fd0\u884c\u65f6\u5411\u5bf9\u8c61\u53d1\u9001\u6d88\u606f&#xff0c;\u4e5f\u5c31\u662f\u67d0\u4e2a\u65b9\u6cd5\u6ca1\u6709\u5b9e\u73b0&#xff0c;\u7f16\u8bd1\u4e0d\u4f1a\u62a5\u9519\u3002<\/p>\n<p>\u6839\u636eisa\u6307\u9488 \u627e\u5230 \u5b9e\u9645\u6240\u5c5e\u7684\u7c7b&#xff0c;\u7136\u540e\u5728\u8be5\u7c7b\u7684\u65b9\u6cd5\u5217\u8868 \u53ca \u7236\u7c7b\u7684\u65b9\u6cd5\u5217\u8868&#xff0c;\u627e\u5230\u540e\u8fd0\u884c&#xff0c;\u518d\u6700\u9876\u5c42\u7236\u7c7b\u627e\u4e0d\u5230\u5bf9\u5e94\u65b9\u6cd5&#xff0c;\u5219unrecognized selector \u5f02\u5e38<\/p>\n<\/p>\n<p>\u7c7b\u65b9\u6cd5 \u5176\u5b9e\u5728runtime \u5c42\u8fd8\u662f\u5b9e\u4f8b\u65b9\u6cd5<\/p>\n<\/p>\n<p>Runloop \u662f\u4e00\u4e2a\u4e00\u76f4\u5728\u6267\u884c\u7684while\u5faa\u73af&#xff0c;\u4e3b\u7ebf\u7a0b\u9ed8\u8ba4\u5f00\u542f&#xff0c;\u5b50\u7ebf\u7a0b\u9700\u8981\u624b\u52a8\u5f00\u542f&#xff0c;\u67093\u79cd\u6e90&#xff0c;\u6267\u884c\u65f6\u4f1a\u5224\u65adtimer sourece0 source1&#xff0c;\u5e94\u7528 \u57fa\u672c\u7684scroll\u6ed1\u52a8\u65f6&#xff0c;timer\u4f1a\u505c\u6b62&#xff0c;\u9700\u8981\u6dfb\u52a0\u5230runloop trackmode\u4e2d\u3002\u5176\u4ed6\u4f8b\u5982autoreleasepool \u7b49\u4e00\u6b21runloop\u6267\u884c\u4f1a\u91ca\u653e\u4e00\u6b21\u6c60&#xff0c;\u4e8b\u4ef6\u54cd\u5e94&#xff0c;\u624b\u52bf&#xff0c;UI\u66f4\u65b0&#xff0c;timer<\/p>\n<p>Autoreleasepool\u5927\u62ec\u53f7\u4f5c\u7528\u57df\u7ed3\u675f\u540e\u91ca\u653e&#xff0c;\u6570\u636e\u7ed3\u6784\u662f\u4e2a\u53cc\u5411\u94fe\u8868<\/p>\n<\/p>\n<p>\u5143\u7c7bmeta_class \u4f5c\u7528<\/p>\n<p>1\u3001\u652f\u6301\u52a8\u6001\u65b9\u6cd5\u89e3\u6790&#xff0c;\u5f53\u5bf9\u8c61\u65b9\u6cd5\u4e0d\u5b58\u5728\u65f6&#xff0c;\u5c1d\u8bd5\u4ece\u7ee7\u627f\u94fe\u4e2d\u67e5\u627e\/\u52a8\u6001\u6dfb\u52a0\u65b9\u6cd5<\/p>\n<p>2\u3001\u652f\u6301\u7c7b\u522b&#xff0c;\u5f53\u7c7b\u522b\u6269\u5c55\u4e86\u7c7b\u7684\u529f\u80fd\u65f6&#xff0c;\u5143\u7c7b\u8d1f\u8d23\u7ba1\u7406\u7c7b\u522b\u7684\u65b0\u589e\u65b9\u6cd5 \u53ca\u539f\u6709\u65b9\u6cd5<\/p>\n<p>3\u3001\u5b8c\u6574\u5bf9\u8c61\u548c\u7c7b\u7684\u5173\u7cfb&#xff0c;\u662f\u63cf\u8ff0\u7c7b\u7684\u7c7b<\/p>\n<p>4\u3001\u6d88\u606f\u8f6c\u53d1\u673a\u5236\u7684\u57fa\u7840&#xff0c;<\/p>\n<\/p>\n<p>class_copyIvarList\u6240\u6709\u5c5e\u6027\u53ca\u5927\u62ec\u53f7\u4e2d\u7684\u53d8\u91cf<\/p>\n<p>class_copyPropertyList\u58f0\u660e\u7684\u5c5e\u6027<\/p>\n<p>class_ro_t \u7c7b\u5728\u7f16\u8bd1\u5668\u786e\u5b9a\u7684\u5c5e\u6027 \u65b9\u6cd5 \u534f\u8bae&#xff0c;\u6ca1\u6709\u5206\u7c7b\u7684\u65b9\u6cd5\u3002\u53ea\u8bfb<\/p>\n<p>class_rw_t \u8fd0\u884c\u65f6\u751f\u6210\u7684<\/p>\n<\/p>\n<p>KVO \u539f\u7406<\/p>\n<p>addObserver\u65f6&#xff0c;\u521b\u5efa\u4e86\u65b0\u7684\u5b50\u7c7b&#xff0c;\u5e76\u5c06\u5bf9\u8c61\u8f6c\u4e3a\u65b0\u5b50\u7c7b\u7684\u5bf9\u8c61&#xff0c;\u5728\u65b0\u5b50\u7c7b\u4e2d\u6dfb\u52a0willchange didchange\u65b9\u6cd5<\/p>\n<p>\u5173\u95edautoNotifyObserver\u540e&#xff0c;\u9700\u8981\u624b\u52a8\u8c03will didchange\u89e6\u53d1<\/p>\n<\/p>\n<p>\u51fd\u6570\u8fd4\u56de\u4e00\u4e2a\u5bf9\u8c61\u65f6&#xff0c;\u4f1a\u5bf9\u5bf9\u8c61 autorelease &#xff0c;\u5ef6\u957f\u5bf9\u8c61\u751f\u547d\u5468\u671f<\/p>\n<\/p>\n<p>\u60ac\u5782\u6307\u9488- \u53ea\u7559\u4e0b\u4e86\u6307\u9488&#xff0c;\u5185\u5b58\u91ca\u653e\u4e86&#xff0c;\u6307\u9488\u6ca1\u91ca\u653e<\/p>\n<\/p>\n<p>\u4e94\u5927\u533a&#xff0c;\u6808&#xff08;\u7cfb\u7edf&#xff09; \u5806&#xff08;\u7a0b\u5e8f&#xff09; \u9759\u6001 \u5b57\u7b26\u4e32\u5e38\u91cf \u4ee3\u7801\u533a<\/p>\n<\/p>\n<p>\u7c7b\u522b\u6dfb\u52a0\u5c5e\u6027&#xff0c;\u901a\u8fc7\u5173\u8054\u5bf9\u8c61&#xff0c;\u5b58\u50a8\u5728\u5168\u5c40\u7684\u4e00\u4e2a\u54c8\u5e0c\u8868\u4e2d<\/p>\n<\/p>\n<p>performselector after \u5b50\u7ebf\u7a0b\u4e2d\u4e0d\u8d77\u4f5c\u7528&#xff0c;\u539f\u7406\u662f\u5185\u90e8\u8d77\u4e86timer\u5904\u7406&#xff0c;\u800c\u5b50\u7ebf\u7a0b\u4e2drunloop\u9ed8\u8ba4\u6ca1\u6709&#xff0c;timer\u5c31\u4e0d\u8d77\u4f5c\u7528<\/p>\n<p>Dispatch after \u539f\u7406\u662f\u5ef6\u8fdf\u6267\u884c&#xff0c;\u800c\u4e0d\u662f\u5230\u8fbe\u5ef6\u8fdf\u65f6\u95f4\u540e\u6267\u884c<\/p>\n<\/p>\n<p>\u68c0\u6d4b\u5361\u987f&#xff1a;<\/p>\n<p>\u4f7f\u7528cadisplaylink\u76d1\u63a7FPS &#xff0c;\u7b80\u5355\u76f4\u89c2\u4f46\u65e0\u6cd5\u5b9a\u4f4d\u5806\u6808<\/p>\n<p>\u76d1\u542crunloop&#xff0c;\u9600\u503c\u4e0d\u597d\u63a7\u5236&#xff0c;\u80fd\u5b9a\u4f4d\u5806\u6808<\/p>\n<p>Ping\u4e3b\u7ebf\u7a0b&#xff0c;\u80fd\u5b9a\u4f4d\u5806\u6808&#xff0c;\u80fd\u8bb0\u5f55\u5361\u987f\u65f6\u95f4&#xff0c;\u9600\u503c<\/p>\n<\/p>\n<p>\u53cd\u5c04&#xff1a;\u7c7b \u534f\u8bae selector<\/p>\n<\/p>\n<p>TCP\/IP \u4e94\u5c42\u534f\u8bae \u7269\u7406\u5c42 \u6570\u636e\u94fe\u8def\u5c42 \u7f51\u7edc\u5c42 \u4f20\u8f93\u5c42 \u5e94\u7528\u5c42<\/p>\n<\/p>\n<p>\u5927\u6587\u4ef6&#xff1a;\u8fb9\u4e0b\u8f7d\u8fb9\u5b58\u5165\u672c\u5730&#xff0c;\u907f\u514d\u5360\u7528\u5927\u5185\u5b58 NSFileManager<\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb484\u6b21\uff0c\u70b9\u8d5e3\u6b21\uff0c\u6536\u85cf3\u6b21\u3002Runloop \u662f\u4e00\u4e2a\u4e00\u76f4\u5728\u6267\u884c\u7684while\u5faa\u73af\uff0c\u4e3b\u7ebf\u7a0b\u9ed8\u8ba4\u5f00\u542f\uff0c\u5b50\u7ebf\u7a0b\u9700\u8981\u624b\u52a8\u5f00\u542f\uff0c\u67093\u79cd\u6e90\uff0c\u6267\u884c\u65f6\u4f1a\u5224\u65adtimer sourece0 source1\uff0c\u5e94\u7528 \u57fa\u672c\u7684scroll\u6ed1\u52a8\u65f6\uff0ctimer\u4f1a\u505c\u6b62\uff0c\u9700\u8981\u6dfb\u52a0\u5230runloop trackmode\u4e2d\u3002\u6839\u636eisa\u6307\u9488 \u627e\u5230 \u5b9e\u9645\u6240\u5c5e\u7684\u7c7b\uff0c\u7136\u540e\u5728\u8be5\u7c7b\u7684\u65b9\u6cd5\u5217\u8868 \u53ca \u7236\u7c7b\u7684\u65b9\u6cd5\u5217\u8868\uff0c\u627e\u5230\u540e\u8fd0\u884c\uff0c\u518d\u6700\u9876\u5c42\u7236\u7c7b\u627e\u4e0d\u5230\u5bf9\u5e94\u65b9\u6cd5\uff0c\u5219unrecognized selector \u5f02\u5e38\u3002\u5bf9\u8c61\u662f\u52a8\u6001\u7c7b\u578b\uff0c\u53ef\u4ee5\u5728\u8fd0\u884c\u65f6\u5411\u5bf9\u8c61\u53d1\u9001\u6d88\u606f\uff0c\u4e5f\u5c31\u662f\u67d0\u4e2a\u65b9\u6cd5\u6ca1\u6709\u5b9e\u73b0\uff0c\u7f16\u8bd1\u4e0d\u4f1a\u62a5\u9519\u3002<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[1680],"topic":[],"class_list":["post-40266","post","type-post","status-publish","format-standard","hentry","category-server","tag-ios"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>iOS\u77e5\u8bc6\u590d\u4e60 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/40266.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"iOS\u77e5\u8bc6\u590d\u4e60 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb484\u6b21\uff0c\u70b9\u8d5e3\u6b21\uff0c\u6536\u85cf3\u6b21\u3002Runloop \u662f\u4e00\u4e2a\u4e00\u76f4\u5728\u6267\u884c\u7684while\u5faa\u73af\uff0c\u4e3b\u7ebf\u7a0b\u9ed8\u8ba4\u5f00\u542f\uff0c\u5b50\u7ebf\u7a0b\u9700\u8981\u624b\u52a8\u5f00\u542f\uff0c\u67093\u79cd\u6e90\uff0c\u6267\u884c\u65f6\u4f1a\u5224\u65adtimer sourece0 source1\uff0c\u5e94\u7528 \u57fa\u672c\u7684scroll\u6ed1\u52a8\u65f6\uff0ctimer\u4f1a\u505c\u6b62\uff0c\u9700\u8981\u6dfb\u52a0\u5230runloop trackmode\u4e2d\u3002\u6839\u636eisa\u6307\u9488 \u627e\u5230 \u5b9e\u9645\u6240\u5c5e\u7684\u7c7b\uff0c\u7136\u540e\u5728\u8be5\u7c7b\u7684\u65b9\u6cd5\u5217\u8868 \u53ca \u7236\u7c7b\u7684\u65b9\u6cd5\u5217\u8868\uff0c\u627e\u5230\u540e\u8fd0\u884c\uff0c\u518d\u6700\u9876\u5c42\u7236\u7c7b\u627e\u4e0d\u5230\u5bf9\u5e94\u65b9\u6cd5\uff0c\u5219unrecognized selector \u5f02\u5e38\u3002\u5bf9\u8c61\u662f\u52a8\u6001\u7c7b\u578b\uff0c\u53ef\u4ee5\u5728\u8fd0\u884c\u65f6\u5411\u5bf9\u8c61\u53d1\u9001\u6d88\u606f\uff0c\u4e5f\u5c31\u662f\u67d0\u4e2a\u65b9\u6cd5\u6ca1\u6709\u5b9e\u73b0\uff0c\u7f16\u8bd1\u4e0d\u4f1a\u62a5\u9519\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/40266.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-05-28T05:43:10+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/40266.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/40266.html\",\"name\":\"iOS\u77e5\u8bc6\u590d\u4e60 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-05-28T05:43:10+00:00\",\"dateModified\":\"2025-05-28T05:43:10+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/40266.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/40266.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/40266.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"iOS\u77e5\u8bc6\u590d\u4e60\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"iOS\u77e5\u8bc6\u590d\u4e60 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/40266.html","og_locale":"zh_CN","og_type":"article","og_title":"iOS\u77e5\u8bc6\u590d\u4e60 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb484\u6b21\uff0c\u70b9\u8d5e3\u6b21\uff0c\u6536\u85cf3\u6b21\u3002Runloop \u662f\u4e00\u4e2a\u4e00\u76f4\u5728\u6267\u884c\u7684while\u5faa\u73af\uff0c\u4e3b\u7ebf\u7a0b\u9ed8\u8ba4\u5f00\u542f\uff0c\u5b50\u7ebf\u7a0b\u9700\u8981\u624b\u52a8\u5f00\u542f\uff0c\u67093\u79cd\u6e90\uff0c\u6267\u884c\u65f6\u4f1a\u5224\u65adtimer sourece0 source1\uff0c\u5e94\u7528 \u57fa\u672c\u7684scroll\u6ed1\u52a8\u65f6\uff0ctimer\u4f1a\u505c\u6b62\uff0c\u9700\u8981\u6dfb\u52a0\u5230runloop trackmode\u4e2d\u3002\u6839\u636eisa\u6307\u9488 \u627e\u5230 \u5b9e\u9645\u6240\u5c5e\u7684\u7c7b\uff0c\u7136\u540e\u5728\u8be5\u7c7b\u7684\u65b9\u6cd5\u5217\u8868 \u53ca \u7236\u7c7b\u7684\u65b9\u6cd5\u5217\u8868\uff0c\u627e\u5230\u540e\u8fd0\u884c\uff0c\u518d\u6700\u9876\u5c42\u7236\u7c7b\u627e\u4e0d\u5230\u5bf9\u5e94\u65b9\u6cd5\uff0c\u5219unrecognized selector \u5f02\u5e38\u3002\u5bf9\u8c61\u662f\u52a8\u6001\u7c7b\u578b\uff0c\u53ef\u4ee5\u5728\u8fd0\u884c\u65f6\u5411\u5bf9\u8c61\u53d1\u9001\u6d88\u606f\uff0c\u4e5f\u5c31\u662f\u67d0\u4e2a\u65b9\u6cd5\u6ca1\u6709\u5b9e\u73b0\uff0c\u7f16\u8bd1\u4e0d\u4f1a\u62a5\u9519\u3002","og_url":"https:\/\/www.wsisp.com\/helps\/40266.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-05-28T05:43:10+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/40266.html","url":"https:\/\/www.wsisp.com\/helps\/40266.html","name":"iOS\u77e5\u8bc6\u590d\u4e60 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-05-28T05:43:10+00:00","dateModified":"2025-05-28T05:43:10+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/40266.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/40266.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/40266.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"iOS\u77e5\u8bc6\u590d\u4e60"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/40266","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=40266"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/40266\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=40266"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=40266"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=40266"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=40266"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}