{"id":1022,"date":"2022-04-24T21:46:50","date_gmt":"2022-04-24T13:46:50","guid":{"rendered":"https:\/\/xujiwei.com\/blog\/?p=1022"},"modified":"2022-04-24T22:05:58","modified_gmt":"2022-04-24T14:05:58","slug":"5-reasons-why-rewrote-mac-catalyst-app","status":"publish","type":"post","link":"https:\/\/xujiwei.com\/blog\/2022\/04\/5-reasons-why-rewrote-mac-catalyst-app\/","title":{"rendered":"5 \u4e2a\u539f\u56e0\u8ba9\u6211\u91cd\u5199 Mac Catalyst \u5e94\u7528"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_65 ez-toc-wrap-right counter-hierarchy ez-toc-counter ez-toc-light-blue ez-toc-container-direction\">\n<p class=\"ez-toc-title\">\u6587\u7ae0\u76ee\u5f55<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69df32930786a\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69df32930786a\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/xujiwei.com\/blog\/2022\/04\/5-reasons-why-rewrote-mac-catalyst-app\/#%E6%9C%80%E4%BD%8E_macOS_%E7%89%88%E6%9C%AC%E8%A6%81%E6%B1%82\" title=\"\u6700\u4f4e macOS \u7248\u672c\u8981\u6c42\">\u6700\u4f4e macOS \u7248\u672c\u8981\u6c42<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/xujiwei.com\/blog\/2022\/04\/5-reasons-why-rewrote-mac-catalyst-app\/#%E7%BC%BA%E5%A4%B1_Document-based_%E5%BA%94%E7%94%A8%E6%9E%B6%E6%9E%84\" title=\"\u7f3a\u5931 Document-based \u5e94\u7528\u67b6\u6784\">\u7f3a\u5931 Document-based \u5e94\u7528\u67b6\u6784<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/xujiwei.com\/blog\/2022\/04\/5-reasons-why-rewrote-mac-catalyst-app\/#%E4%B8%8D%E4%B8%80%E8%87%B4%E7%9A%84_SplitView\" title=\"\u4e0d\u4e00\u81f4\u7684 SplitView\">\u4e0d\u4e00\u81f4\u7684 SplitView<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/xujiwei.com\/blog\/2022\/04\/5-reasons-why-rewrote-mac-catalyst-app\/#WKWebView_%E4%B8%AD%E5%A5%87%E6%80%AA%E7%9A%84%E8%A1%A8%E7%8E%B0\" title=\"WKWebView \u4e2d\u5947\u602a\u7684\u8868\u73b0\">WKWebView \u4e2d\u5947\u602a\u7684\u8868\u73b0<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/xujiwei.com\/blog\/2022\/04\/5-reasons-why-rewrote-mac-catalyst-app\/#%E9%9A%BE%E4%BB%A5%E6%8E%A7%E5%88%B6%E9%BC%A0%E6%A0%87%E4%BA%8B%E4%BB%B6\" title=\"\u96be\u4ee5\u63a7\u5236\u9f20\u6807\u4e8b\u4ef6\">\u96be\u4ee5\u63a7\u5236\u9f20\u6807\u4e8b\u4ef6<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/xujiwei.com\/blog\/2022\/04\/5-reasons-why-rewrote-mac-catalyst-app\/#%E7%BB%93%E8%AE%BA\" title=\"\u7ed3\u8bba\">\u7ed3\u8bba<\/a><\/li><\/ul><\/nav><\/div>\n<p>\u6211\u5199\u4e86\u4e00\u4e2a\u540d\u4e3a <a href=\"https:\/\/apps.apple.com\/app\/mermaideditor\/id1581312955\">MermaidEditor<\/a> \u7684 iOS App\uff0c\u8fd9\u662f\u4e00\u4e2a\u7528\u4e8e\u7f16\u5199 mermaid js \u56fe\u8868\u7684\u7f16\u8f91\u5668\uff0c\u5b83\u4f7f\u7528 WKWebVIew \u52a0\u8f7d\u4e00\u4e2amonaco \u7f16\u8f91\u5668\u6765\u7f16\u8f91 mermaid js \u56fe\u56fe\u7684\u6e90\u4ee3\u7801\uff0c\u4ece\u800c\u652f\u6301\u8bed\u6cd5\u9ad8\u4eae\u548c\u5173\u952e\u8bcd\u81ea\u52a8\u5b8c\u6210\u3002<\/p>\n<p>\u5728\u53d1\u5e03\u4e86 iOS \u7248\u672c\u7684 MermaidEditor \u4e4b\u540e\uff0c\u6211\u60f3\u628a\u8fd9\u4e2a\u5e94\u7528\u9002\u914d\u5230 macOS \u4e0a\uff0c\u6211\u8ba4\u4e3a\u5728\u8fd9\u91cc\u4f7f\u7528 Mac Catalyst \u662f\u4e00\u4e2a\u5f88\u597d\u7684\u573a\u666f\uff0c\u8fd9\u662f\u82f9\u679c\u5728 WWDC19 \u5f00\u59cb\u63d0\u4f9b\u7684\u4e00\u9879\u6280\u672f\uff0c\u53ef\u4ee5\u8ba9\u6211\u4eec\u7684 iPad \u5e94\u7528\u5728 macOS\u4e0a \u8fd0\u884c\uff0c\u53ea\u9700\u8981\u5728 Xcode \u4e2d\u9009\u4e2d\u4e00\u4e2a\u590d\u9009\u6846\u5c31\u884c\u4e86\u3002<\/p>\n<p>\u6240\u4ee5\u6211\u7528 Mac Catalyst \u4e3a macOS \u91cd\u65b0\u7f16\u8bd1\u4e86 MermaidEditor\uff0c\u5e76\u5411\u7528\u6237\u53d1\u5e03\u3002\u4f46\u5728\u4e00\u4e9b\u7248\u672c\u4e4b\u540e\uff0c\u6211\u51b3\u5b9a\u7528\u539f\u751f\u4ee3\u7801\u91cd\u5199\u5b83\u3002<\/p>\n<p>\u4e3a\u4ec0\u4e48\u5462\uff1f<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E6%9C%80%E4%BD%8E_macOS_%E7%89%88%E6%9C%AC%E8%A6%81%E6%B1%82\"><\/span>\u6700\u4f4e macOS \u7248\u672c\u8981\u6c42<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Mac Catalyst \u8981\u6c42\u7684\u6700\u4f4e macOS \u90e8\u7f72\u76ee\u6807\u7248\u672c\u662f macOS 10.15\uff0c\u6240\u4ee5\u5982\u679c\u6211\u4eec\u7684\u5e94\u7528\u7a0b\u5e8f\u7684\u76ee\u6807\u7248\u672c\u65e9\u4e8e macOS 10.15\uff0cMac Catalyst \u5c31\u65e0\u6cd5\u7f16\u8bd1\u3002<\/p>\n<p>\u53e6\u5916\uff0cMac Catalyst \u8fd8\u6709\u4e00\u4e2a\u9650\u5236\uff0c\u5982\u679c\u6211\u4eec\u60f3\u8ba9\u5e94\u7528\u7a0b\u5e8f\u4f7f\u7528\u4f53\u9a8c\u66f4\u50cf\u4e00\u4e2a\u539f\u751f\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\uff0c\u6211\u4eec\u9700\u8981\u5728 Mac Catalyst \u90e8\u7f72\u9009\u9879\u4e2d\u9009\u62e9 &quot;\u4e3aMac\u4f18\u5316\u754c\u9762&quot;\u3002<\/p>\n<p>\u54c8\uff0c\u6700\u5c0f\u7684 macOS \u90e8\u7f72\u76ee\u6807\u7248\u672c\u5347\u7ea7\u5230\u4e86 macOS 11 Big Sur!<\/p>\n<p><img src=\"https:\/\/xujiwei.com\/blog\/wp-content\/uploads\/2022\/04\/rewrite-mac-catalyst-app-1.png\" alt=\"rewrite-mac-catalyst-app-1\" \/><\/p>\n<p>\u56e0\u6b64\uff0c\u5982\u679c\u4f60\u60f3\u4fdd\u6301\u4f60\u7684\u5e94\u7528\u7a0b\u5e8f\u517c\u5bb9\u66f4\u591a\u7684 macOS \u7248\u672c\uff0c\u4f60\u4e0d\u5e94\u8be5\u4f7f\u7528 Mac Catalyst\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E7%BC%BA%E5%A4%B1_Document-based_%E5%BA%94%E7%94%A8%E6%9E%B6%E6%9E%84\"><\/span>\u7f3a\u5931 Document-based \u5e94\u7528\u67b6\u6784<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>MermaidEditor \u662f\u4e00\u4e2a\u6587\u6863\u7f16\u8f91\u5e94\u7528\uff0c\u6240\u4ee5\u6211\u4f7f\u7528 UIDocumentBrowser \u4f5c\u4e3a\u57fa\u7840\u5e94\u7528\u67b6\u6784\uff0c\u5b83\u5728 iOS \u4e0a\u63d0\u4f9b\u4e86\u5f88\u591a\u6587\u4ef6\u7ba1\u7406\u529f\u80fd\u3002<\/p>\n<p>\u5f53\u6211\u628a MermaidEditor \u9002\u914d\u5230 macOS \u65f6\uff0c\u9762\u4e34\u7684\u7b2c\u4e00\u4e2a\u95ee\u9898\u662f UIDocumentBrowser \u5e76\u6ca1\u6709\u50cf\u6211\u9884\u671f\u7684\u90a3\u6837\u5de5\u4f5c\u3002\u5b83\u5728\u542f\u52a8\u65f6\u4f1a\u5148\u663e\u793a\u4e00\u4e2a\u7a7a\u767d\u7a97\u53e3\uff0c\u7136\u540e\u6253\u5f00\u4e00\u4e2a\u6587\u4ef6\u9009\u62e9\u5668\uff0c\u8ba9\u7528\u6237\u9009\u62e9\u8981\u6253\u5f00\u7684\u6587\u4ef6\uff0c\u8fd9\u4e0e\u539f\u751f NSDocument \u7c7b\u63d0\u4f9b\u7684\u80fd\u529b\u4f7f\u7528\u8d77\u6765\u6709\u5f88\u5927\u4e0d\u540c\u3002<\/p>\n<p><img src=\"https:\/\/xujiwei.com\/blog\/wp-content\/uploads\/2022\/04\/rewrite-mac-catalyst-app-2.png\" alt=\"rewrite-mac-catalyst-app-2\" style=\"\" \/><\/p>\n<p>\u4f46\u8fd9\u5e76\u4e0d\u662f\u6700\u5927\u7684\u95ee\u9898\u3002<\/p>\n<p>\u6700\u5927\u7684\u95ee\u9898\u662f\uff0c\u57fa\u4e8eCocoa Document-based \u7684\u5e94\u7528\u7a0b\u5e8f\u67b6\u6784\u4e3a\u5e94\u7528\u7a0b\u5e8f\u63d0\u4f9b\u4e86\u5f88\u591a\u4e0e\u6587\u6863\u6253\u5f00\u3001\u7f16\u8f91\u7b49\u76f8\u5173\u7684\u529f\u80fd\uff0c\u4f8b\u5982\uff1a<\/p>\n<ul>\n<li>NSDocument \u63d0\u4f9b\u4e86\u7528\u4e8e\u6587\u6863\u7684\u6253\u5f00\u3001\u4fdd\u5b58\u3001\u7248\u672c\u7ba1\u7406\u7b49\u529f\u80fd<\/li>\n<li>NSWindowController \u5177\u6709\u91cd\u547d\u540d\u3001\u590d\u5236\u3001\u7f16\u8f91\u72b6\u6001\u6307\u793a\u5668\u7b49\u529f\u80fd<\/li>\n<li>NSWindowController \u652f\u6301\u6807\u7b7e\u5f0f\u7a97\u53e3\uff0c\u53ef\u4ee5\u5c06\u591a\u4e2a\u6587\u6863\u7a97\u53e3\u4ee5\u6807\u7b7e\u5f62\u5f0f\u7ba1\u7406<\/li>\n<\/ul>\n<p>\u56e0\u6b64\uff0c\u5982\u679c\u4f60\u7684\u5e94\u7528\u7a0b\u5e8f\u662f\u9762\u5411\u6587\u6863\u7f16\u8f91\u7684\uff0c\u4f60\u53ef\u80fd\u4e0d\u5e94\u8be5\u4f7f\u7528Mac Catalyst\u3002 <\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E4%B8%8D%E4%B8%80%E8%87%B4%E7%9A%84_SplitView\"><\/span>\u4e0d\u4e00\u81f4\u7684 SplitView<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><img src=\"https:\/\/xujiwei.com\/blog\/wp-content\/uploads\/2022\/04\/rewrite-mac-catalyst-app-3.png\" alt=\"rewrite-mac-catalyst-app-3\" style=\"\" \/><\/p>\n<p>\u6211\u5728 MermaidEditor \u4e2d\u4f7f\u7528\u4e86 SplitView \u6765\u652f\u6301\u4e24\u4e2a\u9762\u677f\u7684\u7f16\u8f91\uff0c\u8fd9\u4e24\u4e2a\u9762\u677f\u7528\u6765\u540c\u6b65\u663e\u793a\u7684 mermaid js \u6e90\u4ee3\u7801\u7f16\u8f91\u548c\u56fe\u8868\u9884\u89c8\u56fe\u7247\u3002<\/p>\n<p>\u5728 iOS \u4e0a\uff0c\u6211\u4f7f\u7528\u4e86 UISplitViewController\uff0c\u5b83\u5728 iPad \u4e0a\u8db3\u591f\u597d\u7528\uff0c\u4f46\u5728 macOS \u4e0a\uff0c\u5b83\u6709\u4e00\u4e9b\u9650\u5236\uff0c\u4e0d\u9002\u5408\u4e8e\u539f\u751f\u7684\u684c\u9762\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n<p>\u5728\u4f7f\u7528 NSSplitViewController \u65f6\uff0cSplitView \u7684\u5206\u5272\u680f\u53ef\u4ee5\u88ab\u8c03\u6574\u5230 SplitView \u4e2d\u7684\u4efb\u4f55\u4f4d\u7f6e\uff0c\u4f46 UISplitViewController \u4f1a\u5c06\u4e3b\u680f\u7684\u5927\u5c0f\u9650\u5236\u5728\u4e00\u5b9a\u8303\u56f4\u5185\uff0c\u5b83\u4e0d\u5141\u8bb8\u4e24\u4e2a\u9762\u677f\u88ab\u8c03\u6574\u5230\u4efb\u4f55\u5927\u5c0f\u3002<\/p>\n<p>\u6240\u4ee5\uff0c\u5982\u679c\u4f60\u7684\u5e94\u7528\u7a0b\u5e8f\u9700\u8981\u4f7f\u7528 SplitView \u6765\u663e\u793a\u4e24\u4e2a\u9762\u677f\uff0c\u4f60\u53ef\u80fd\u4e0d\u592a\u9002\u5408\u4f7f\u7528 Mac Catalyst\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"WKWebView_%E4%B8%AD%E5%A5%87%E6%80%AA%E7%9A%84%E8%A1%A8%E7%8E%B0\"><\/span>WKWebView \u4e2d\u5947\u602a\u7684\u8868\u73b0<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><img src=\"https:\/\/xujiwei.com\/blog\/wp-content\/uploads\/2022\/04\/rewrite-mac-catalyst-app-4.png\" alt=\"rewrite-mac-catalyst-app-4\" style=\"\" \/><\/p>\n<p>\u5728 MermaidEditor \u4e2d\uff0c\u5b83\u4f7f\u7528\u4e86\u4e00\u4e2a\u6765\u81ea\u5fae\u8f6f\u7684 monaco \u7f16\u8f91\u5668\uff0c\u4ee5\u63d0\u4f9b\u4e3b\u8981\u7684\u7f16\u8f91\u5668\u529f\u80fd\uff0c\u5982\u8bed\u6cd5\u9ad8\u4eae\u3001\u5173\u952e\u8bcd\u81ea\u52a8\u5b8c\u6210\u3002<\/p>\n<p>Monaco \u7f16\u8f91\u5668\u662f\u4e00\u4e2a\u57fa\u4e8e Web \u7684\u7f16\u8f91\u5668\uff0c\u6240\u4ee5\u5b83\u9700\u8981 WebView \u624d\u80fd\u5728 iOS Ap \u4e2d\u5de5\u4f5c\u3002<\/p>\n<p>\u56e0\u4e3a Monaco \u7f16\u8f91\u5668\u4f7f\u7528\u81ea\u5b9a\u4e49\u4ee3\u7801\u6e32\u67d3\u67b6\u6784\uff0c\u7f16\u8f91\u5668\u7684\u6587\u672c\u533a\u4e0d\u662f HTML \u4e2d\u5178\u578b\u7684 textarea \u6807\u7b7e\u3002\u6240\u4ee5 monaco \u7f16\u8f91\u5668\u5728 iOS\u4e0a \u63d0\u4f9b\u4e86\u4e00\u4e2a\u6309\u94ae\u6765\u624b\u52a8\u83b7\u53d6\u952e\u76d8\u7126\u70b9\u3002<\/p>\n<p>\u4f46\u5728 macOS \u4e0a\uff0cmonaco \u7f16\u8f91\u5668\u4e2d\u6ca1\u6709\u8fd9\u6837\u7684\u6309\u94ae\uff0c\u56e0\u4e3a monaco \u7f16\u8f91\u5668\u628a WebView \u7684\u73af\u5883\u8bc6\u522b\u4e3a\u684c\u9762\u7535\u8111\u3002\u8fd9\u5c06\u5bfc\u81f4\u5728 Mac Catalyst \u4e2d\u53ef\u80fd\u65e0\u6cd5\u6355\u6349\u952e\u76d8\u4e8b\u4ef6\uff0c\u867d\u7136\u5b83\u91cc\u9762\u6709\u4e00\u4e2a\u6b63\u5728\u95ea\u70c1\u7684\u5149\u6807\uff0c\u4f46\u4f60\u4e0d\u80fd\u5728\u7f16\u8f91\u5668\u4e2d\u505a\u4efb\u4f55\u4e8b\u60c5\u3002<\/p>\n<p>\u8fd9\u610f\u5473\u7740\uff0c\u5982\u679c\u4f60\u9700\u8981\u5728\u4f60\u7684\u5e94\u7528\u7a0b\u5e8f\u4e2d\u5d4c\u5165\u4e00\u4e2a monaco \u7f16\u8f91\u5668\uff0c\u4f60\u53ef\u4ee5\u4e0d\u9002\u5408\u4f7f\u7528 Mac Catalyst\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E9%9A%BE%E4%BB%A5%E6%8E%A7%E5%88%B6%E9%BC%A0%E6%A0%87%E4%BA%8B%E4%BB%B6\"><\/span>\u96be\u4ee5\u63a7\u5236\u9f20\u6807\u4e8b\u4ef6<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>MermaidEditor \u6709\u4e00\u4e2a\u56fe\u8868\u6e32\u67d3\u56fe\u7247\u9884\u89c8\u9762\u677f\uff0c\u53ef\u4ee5\u5373\u65f6\u68c0\u67e5\u6e32\u67d3\u7684\u56fe\u8868\uff0c\u7528\u6237\u53ef\u4ee5\u901a\u8fc7\u7f29\u653e\u6216\u5e73\u79fb\u7684\u624b\u52bf\u6765\u68c0\u67e5\u56fe\u8868\u56fe\u50cf\u7684\u5185\u5bb9\uff0c\u4f46\u5728 macOS \u4e0a\uff0c\u7528\u6237\u901a\u5e38\u4f7f\u7528\u9f20\u6807\u6765\u63a7\u5236\u548c\u64cd\u4f5c\u3002<\/p>\n<p>Mac Catalyst \u4e2d\u7684 UIScrollView \u5728 macOS \u4e0a\u4f1a\u652f\u6301\u4e00\u4e9b\u9ed8\u8ba4\u64cd\u4f5c\uff0c\u6bd4\u5982\u7528\u6eda\u8f6e\u6eda\u52a8\u5185\u5bb9\uff0c\u70b9\u51fb\u548c\u62d6\u52a8\u6765\u79fb\u52a8\u5185\u5bb9\uff0c\u4f46\u5982\u679c\u6211\u4eec\u60f3\u8981\u4e00\u4e9b\u4e0d\u540c\u7684\u884c\u4e3a\uff0c\u6bd4\u5982\u7528\u6eda\u8f6e\u7f29\u653e\u56fe\u8868\u56fe\u50cf\uff1f<\/p>\n<p>\u8fd9\u5728 Mac Catalyst \u4e2d\u662f\u4e0d\u53ef\u80fd\u7684\uff0c\u56e0\u4e3a iOS \u4e0a\u6ca1\u6709\u9f20\u6807\u4e8b\u4ef6\u3002<\/p>\n<p>\u6240\u4ee5\uff0c\u5982\u679c\u4f60\u7684\u5e94\u7528\u7a0b\u5e8f\u9700\u8981\u4f7f\u7528\u9f20\u6807\u4e8b\u4ef6\uff0c\u5982\u6eda\u8f6e\u4e8b\u4ef6\u6216\u9f20\u6807\u79fb\u52a8\u4e8b\u4ef6\uff0c\u4f60\u53ef\u80fd\u4e0d\u592a\u9002\u5408\u4f7f\u7528 Mac Catalyst\u3002<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E7%BB%93%E8%AE%BA\"><\/span>\u7ed3\u8bba<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Mac Catalyst \u6709\u5f88\u591a\u9650\u5236\uff0c\u5982\u679c\u4f60\u60f3\u6784\u5efa\u4e00\u4e2a\u5177\u6709\u66f4\u591a\u539f\u751f\u5e94\u7528\u4f53\u9a8c\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c\u4f60\u53ef\u80fd\u4e0d\u592a\u9002\u5408\u4f7f\u7528 Mac Catalyst\u3002<\/p>\n<p>\u7136\u800c\uff0cMac Catalyst \u662f\u5c06 iOS \u5e94\u7528\u9002\u914d\u5230 macOS \u7684\u4e00\u4e2a\u6377\u5f84\uff0c\u5982\u679c\u4f60\u5df2\u7ecf\u6709\u4e00\u4e2a iOS App\uff0c\u60f3\u8981\u63d0\u4f9b\u7ed9\u66f4\u591a\u7528\u6237\uff0c\u5e76\u4e14\u4e0d\u4f1a\u78b0\u5230\u4e0a\u8ff0\u95ee\u9898\uff0c\u4f60\u5e94\u8be5\u5c1d\u8bd5\u4e00\u4e0b Mac Catalyst\u3002<\/p>\n<p>\u867d\u7136 Mac Catalyst \u76ee\u524d\u8fd8\u4e0d\u80fd\u63d0\u4f9b\u5b8c\u6574\u7684\u684c\u9762\u5e94\u7528\u4f53\u9a8c\uff0c\u4f46\u662f\u8fd8\u662f\u6709\u8bb8\u591a\u4ee3\u7801\u53ef\u4ee5\u5728 iOS \u548c macOS \u4e4b\u95f4\u5171\u4eab\uff0c\u6211\u4eec\u53ea\u9700\u8981\u4e3a\u5e94\u7528\u6846\u67b6\u548c UI \u63a7\u4ef6\u7f16\u5199\u4e0d\u540c\u7684\u4ee3\u7801\u5c31\u884c\u4e86\u3002<\/p>\n<p>\u901a\u8fc7 Mac Catalyst\uff0c\u6211\u4eec\u53ef\u4ee5\u770b\u5230\uff0c\u82f9\u679c\u5df2\u7ecf\u505a\u4e86\u5f88\u591a\u5de5\u4f5c\u6765\u62b9\u5e73 iOS \u548c macOS \u4e4b\u95f4\u7684\u5dee\u5f02\u3002\u4e5f\u8bb8\u5728\u672a\u6765\u7684\u67d0\u4e00\u5929\uff0ciOS \u4f1a\u6709\u4e00\u4e2a\u66f4\u597d\u7684\u684c\u9762\u4f7f\u7528\u4f53\u9a8c\uff0c\u7136\u540eUIKit \u4e5f\u4f1a\u63d0\u4f9b\u66f4\u591a\u7684\u684c\u9762\u529f\u80fd\u3002<\/p>\n<p>\u5e0c\u671b\u6b64\u6587\u5bf9\u4f60\u6709\u6240\u5e2e\u52a9\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6211\u5199\u4e86\u4e00\u4e2a\u540d\u4e3a MermaidEditor \u7684 iOS App\uff0c\u8fd9\u662f\u4e00\u4e2a\u7528\u4e8e\u7f16\u5199 &hellip;<\/p>\n<p class=\"read-more\"><a href=\"https:\/\/xujiwei.com\/blog\/2022\/04\/5-reasons-why-rewrote-mac-catalyst-app\/\">\u7ee7\u7eed\u9605\u8bfb &raquo;<\/a><\/p>\n","protected":false},"author":2,"featured_media":1027,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[168],"tags":[309,324,326,211,325],"_links":{"self":[{"href":"https:\/\/xujiwei.com\/blog\/wp-json\/wp\/v2\/posts\/1022"}],"collection":[{"href":"https:\/\/xujiwei.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/xujiwei.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/xujiwei.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/xujiwei.com\/blog\/wp-json\/wp\/v2\/comments?post=1022"}],"version-history":[{"count":0,"href":"https:\/\/xujiwei.com\/blog\/wp-json\/wp\/v2\/posts\/1022\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/xujiwei.com\/blog\/wp-json\/wp\/v2\/media\/1027"}],"wp:attachment":[{"href":"https:\/\/xujiwei.com\/blog\/wp-json\/wp\/v2\/media?parent=1022"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/xujiwei.com\/blog\/wp-json\/wp\/v2\/categories?post=1022"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/xujiwei.com\/blog\/wp-json\/wp\/v2\/tags?post=1022"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}