\u751f\u6210app\u7684\u5728\u7ebf<\/a>P\u7684\u65b9\u6cd5\u548c\u6b65\u9aa4<\/p>\n1. \u51c6\u5907\u5de5\u4f5c\uff1a<\/p>\n
– \u786e\u4fdd\u60a8\u7684\u7f51\u7ad9\u662f\u54cd\u5e94\u5f0f\u7684\uff0c\u9002\u5e94\u5404\u79cd\u5c4f\u5e55\u5c3a\u5bf8\u548c\u8bbe\u5907\u7c7b\u578b\u3002<\/p>\n
– \u51c6\u5907\u60a8\u7684APP\u7684\u56fe\u6807\u3001\u542f\u52a8\u9875\u7b49\u76f8\u5173\u7d20\u6750\u3002<\/p>\n
2. \u4f7f\u7528Webview\u521b\u5efaAPP\uff1a<\/p>\n
– \u4e0d\u540c\u5f00\u53d1\u5e73\u53f0\uff08\u5982Android\u3001iOS\uff09\u5177\u6709\u5176\u81ea\u5df1\u7684Webview\u7ec4\u4ef6\u3002\u4ee5\u4e0b\u5c06\u4f7f\u7528Android Studio\u548cXcode\uff08iOS\uff09\u4e3a\u4f8b\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528Webview\u751f\u6210APP\u3002<\/p>\n
\u65b9\u6cd51\uff1a\u5229\u7528Android Studio\u521b\u5efaAndroid APP\uff1a<\/p>\n
a. \u5b89\u88c5\u5e76\u542f\u52a8Android Studio\u3002<\/p>\n
b. \u521b\u5efa\u4e00\u4e2a\u65b0\u7684Android\u9879\u76ee\uff0c\u9009\u62e9\u201cEmpty Activity\u201d\u6a21\u677f\u3002<\/p>\n
c. \u5728\u6d3b\u52a8\u5e03\u5c40\u6587\u4ef6(activity_main.xml)\u4e2d\u7684ConstraintLayout\u5185\uff0c\u6dfb\u52a0WebView\u7ec4\u4ef6\uff0c\u5e76\u8bbe\u7f6e\u5176id\u4e3a\u201cwebview\u201d\u3002<\/p>\n
d. \u5728MainActivity.java\u4e2d\u5bfc\u5165\u6240\u9700\u7684WebView\u5e93\uff0c\u7136\u540e\u8bbe\u7f6eWebView\u7ec4\u4ef6\u3002<\/p>\n
e. \u5728AndroidManifest.xml\u4e2d\u6dfb\u52a0Internet\u6743\u9650\u3002<\/p>\n
f. \u7f16\u8bd1\u548c\u6253\u5305\uff0c\u751f\u6210APK\u6587\u4ef6\uff0c\u5373\u53ef\u5b89\u88c5\u5728Android\u8bbe\u5907\u4e0a\u3002<\/p>\n
\u65b9\u6cd52\uff1a\u5229\u7528Xcode\u521b\u5efaiOS APP\uff1a<\/p>\n
a. \u5b89\u88c5\u5e76\u542f\u52a8Xcode\u3002<\/p>\n
b. \u521b\u5efa\u4e00\u4e2a\u65b0\u7684iOS\u9879\u76ee\uff0c\u9009\u62e9\u201cSingle View App\u201d\u6a21\u677f\u3002<\/p>\n
c. \u5728Main.storyboard\u4e2d\uff0c\u62d6\u5165\u4e00\u4e2a`WKWebView`\u7ec4\u4ef6\u5230\u89c6\u56fe\u4e2d\u3002<\/p>\n
d. \u63a7\u5236\u62d6\u62fd\u5bf9`WKWebView`\u521b\u5efa\u4e00\u4e2aoutlet\u8fde\u63a5\uff0c\u4f8b\u5982 “webView”\u3002<\/p>\n
e. \u5728ViewController.swift\u4e2d\u5bfc\u5165WebKit\u5e93\uff0c\u5e76\u8bbe\u7f6e`webView`\u7684\u914d\u7f6e\u3002<\/p>\n
\n
<\/figure>\n<\/p>\nf. \u7f16\u8bd1\u548c\u6253\u5305\uff0c\u751f\u6210iOS\u5e94\u7528\u7a0b\u5e8f\uff0c\u4fbf\u53ef\u5728iOS\u8bbe\u5907\u4e0a\u5b89\u88c5\u3002<\/p>\n
3. \u5728\u5e94\u7528\u5546\u5e97\u53d1\u5e03APP\uff1a<\/p>\n
– \u51c6\u5907\u597d\u60a8\u7684APP\u540e\uff0c\u60a8\u53ef\u4ee5\u5c06\u5176\u63d0\u4ea4\u5230Apple App Store\uff08iOS\uff09\u548cGoogle Play Store\uff08Android\uff09\u8fdb\u884c\u5ba1\u6838\u3002\u4e00\u65e6\u5ba1\u6838\u901a\u8fc7\uff0c\u7528\u6237\u5c31\u53ef\u4ee5\u5728\u5e94\u7528\u5546\u5e97\u627e\u5230\u5e76\u4e0b\u8f7d\u60a8\u7684APP\u3002<\/p>\n
\u56db\u3001\u603b\u7ed3<\/p>\n
\u5c06\u624b\u673a\u7f51\u7ad9\u751f\u6210\u4e3aAPP\u53ef\u80fd\u9700\u8981\u4e00\u5b9a\u7684\u5f00\u53d1\u6280\u80fd\uff0c\u4f46\u5b83\u5177\u6709\u5f88\u591a\u4f18\u52bf\u3002\u901a\u8fc7\u672c\u6559\u7a0b\uff0c\u60a8\u5e94\u8be5\u5df2\u7ecf\u4e86\u89e3\u4e86\u5c06\u624b\u673a\u7f51\u7ad9\u8f6c\u6362\u4e3aAPP\u7684\u539f\u7406\u4ee5\u53ca\u64cd\u4f5c\u8fc7\u7a0b\u3002\u5f53\u7136\uff0c\u60a8\u4e5f\u53ef\u4ee5\u5bfb\u6c42\u7b2c\u4e09\u65b9\u5e73\u53f0\u6216\u5de5\u5177\u7684\u5e2e\u52a9\u6765\u751f\u6210APP\uff0c\u4f8b\u5982PhoneGap\u3001Appgyver\u7b49\u3002\u5e0c\u671b\u672c\u6559\u7a0b\u80fd\u5bf9\u60a8\u6709\u6240\u5e2e\u52a9\uff0c\u795d\u60a8\u6210\u529f\u5c06\u624b\u673a\u7f51\u7ad9\u751f\u6210\u4e3aAPP\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"
\u5982\u4f55\u5c06\u624b\u673a\u7f51\u7ad9\u751f\u6210\u4e3aAPP\uff1a\u539f\u7406\u4e0e\u8be6\u7ec6\u4ecb\u7ecd\u4eca\u5929\uff0c\u6211\u4eec\u5c06\u63a2\u8ba8\u5982\u4f55\u5c06\u4e00\u4e2a\u79fb\u52a8\u7f51\u7ad9\u8f6c\u6362\u6210\u4e00\u4e2aAPP\u5e94\u7528\u7a0b\u5e8f\u3002\u5728\u672c\u6559\u7a0b\u4e2d\uff0c\u6211\u4eec\u5c06\u4ecb\u7ecd\u8fd9\u4e2a\u8fc7\u7a0b\u7684\u539f\u7406\u3001\u4f18\u7f3a\u70b9\uff0c\u4ee5\u53ca\u5982\u4f55\u64cd\u4f5c\u3002\u51c6\u5907\u597d\u4e86\u5417\uff1f\u8ba9\u6211\u4eec\u5f00\u59cb\u5427\uff01\u4e00\u3001\u4e3a\u4ec0\u4e48<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[3242,18916,105,6129,736],"topic":[],"class_list":["post-14773","post","type-post","status-publish","format-standard","hentry","category-appkf","tag-app-h5--","tag-phpapp","tag-105","tag-6129","tag-736"],"_links":{"self":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts\/14773","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/comments?post=14773"}],"version-history":[{"count":1,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts\/14773\/revisions"}],"predecessor-version":[{"id":14805,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts\/14773\/revisions\/14805"}],"wp:attachment":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/media?parent=14773"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/categories?post=14773"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/tags?post=14773"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/topic?post=14773"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}