{"id":328,"date":"2013-05-30T20:02:23","date_gmt":"2013-05-30T12:02:23","guid":{"rendered":"http:\/\/www.withonly.com\/?p=328"},"modified":"2013-05-30T20:02:23","modified_gmt":"2013-05-30T12:02:23","slug":"ios-%e9%bb%98%e8%ae%a4%e8%8b%b1%e6%96%87%e8%af%ad%e8%a8%80%e8%af%af%e5%88%a0%e9%99%a4%e7%9a%84%e6%81%a2%e5%a4%8d","status":"publish","type":"post","link":"https:\/\/blog.5danyuan.com\/?p=328","title":{"rendered":"iOS \u9ed8\u8ba4\u82f1\u6587\u8bed\u8a00\u8bef\u5220\u9664\u7684\u6062\u590d"},"content":{"rendered":"<p>\u4e0a\u4e00\u4e2a\u5e94\u7528\u4e2d\u7684\u4e0b\u62c9\u5237\u65b0\u6211\u662f\u81ea\u5df1\u6478\u7d22\u7740\u5199\u7684\uff0c\u4e0d\u8fc7\u662f\u9488\u5bf9 UITableView \u7684\uff0c\u8fd9\u6b21\u7684\u5e94\u7528\u662f\u8981\u9488\u5bf9\u4e00\u4e2a UIScrollView \uff0c\u5c31\u60f3\u7528\u73b0\u6210\u7684\uff0c\u53cd\u6b63\u5927\u6982\u539f\u7406\u90fd\u5dee\u4e0d\u591a\uff0c\u6ca1\u6709\u5fc5\u8981\u91cd\u590d\u9020\u8f6e\u5b50\u3002\u4e8e\u662f\u9009\u62e9\u4e86\u00a0EGORefreshTableHeaderView \u3002<\/p>\n<p>\u4e0b\u5348\u5c31\u8fb9\u7f51\u4e0a\u641c\u7d22\u8fb9\u5c1d\u8bd5\u4f7f\u7528\uff0c\u4f46\u662f\u53d1\u73b0\u8fd9\u4e2a\u7ec4\u4ef6\u91cc\u7684\u6587\u5b57\u4f7f\u7528\u4e86\u591a\u8bed\u8a00\u8bbe\u7f6e\uff0c\u8bf6\u5440\u6211\u53bb\uff0c\u6211\u7684\u5e94\u7528\u6839\u672c\u4e0d\u9700\u8981\u591a\u8bed\u8a00\uff0c\u4f30\u8ba1\u5199\u4ee3\u7801\u7684\u591a\u5c11\u90fd\u548c\u6211\u4e00\u6837\u6709\u70b9\u5f3a\u8feb\u75c7\uff0c\u4e8e\u662f\u6309\u7167\u5b83\u7684\u7ed3\u6784\u6765\u6dfb\u52a0\u591a\u8bed\u8a00\u5904\u7406\uff0c\u6ca1\u6709\u4fee\u6539\u6e90\u7801\uff0c\u987a\u4fbf\u5c31\u5f53\u5b66\u4e60\u4e0b\u5982\u4f55\u4f7f\u7528\u591a\u8bed\u8a00\u5457\u3002<\/p>\n<p>\u6dfb\u52a0\u8bed\u8a00\u65f6\uff0c\u5f39\u51fa\u4e86\u4e00\u4e2a\u5bf9\u8bdd\u6846\uff0c\u5927\u6982\u662f\u95ee\u662f\u4e0d\u662f\u8981\u5f15\u7528\u7cfb\u7edf\u9ed8\u8ba4\u7684\u82f1\u6587\u3002\u4e00\u60f3\u5e94\u7528\u53c8\u4e0d\u4e0a\u56fd\u5916\u5e02\u573a\uff0c\u8981\u7740\u6bdb\u7528\u3002\u5c31\u53d6\u6d88\uff0c\u7136\u540e\u9009\u62e9\u82f1\u6587\uff0c\u70b9\u51fb\u5220\u9664\u3002\u5217\u8868\u91cc\u5e72\u51c0\u4e86\uff0c\u6d01\u7656\u7684\u4eba\u4f60\u4f24\u4e0d\u8d77\u3002\u51c6\u5907\u6dfb\u52a0\u4e2d\u6587\uff0c\u4f46\u662f\u8fd9\u4e2a\u65f6\u5019\u6dfb\u52a0\u4e0d\u4e86\u4e86\u3002<\/p>\n<p>\u5bf9\u8bdd\u6846\u91cc\u53ea\u6709\u4e00\u4e2a\u00a0<em>Choose files and reference language to create **** localization \uff0c<\/em>\u65e0\u6cd5\u4e0b\u4e00\u6b65\u4e86\uff0c\u5728\u8fd9\u4e0b\u73ed\u7684\u70b9\u6765\u4e86\u8fd9\u4e48\u4e0b\uff0c\u7f51\u4e0a\u4e00\u987f\u597d\u627e\uff0cgoogle \u65f6\u4e0d\u65f6\u548c\u8c10\uff0c\u540e\u6765\u7ec8\u4e8e\u5728 stackoverflow \u00a0\u7684\u67d0\u4e2a\u7f51\u9875\u4e0a\u53d1\u73b0\u4e86\u65b9\u6cd5\uff0c\u73b0\u5728\u653e\u51fa\u6765\uff0c\u65b9\u4fbf\u548c\u6211\u4e00\u6837E\u6587\u662f\u4e2a\u534a\u540a\u5b50\u7684\u4eba\u3002<\/p>\n<p>\u53f3\u952e\u70b9\u51fb*.xcodeproj \u6587\u4ef6\uff0c\u9009\u62e9\u663e\u793a\u5305\u5185\u5bb9\uff0c\u7136\u540e\u7f16\u8f91 project.pbxproj \u6587\u4ef6\uff0c\u641c\u7d22\/* End PBXSourcesBuildPhase section *\/\u5b57\u7b26\uff0c\u5728\u8fd9\u4e2a\u6bb5\u843d\u7684\u540e\u9762\u6dfb\u52a0\u4e00\u4e2a\u65b0\u7684\u6bb5\u843d\u5982\u4e0b\uff1a<\/p>\n<p>\/* Begin PBXVariantGroup section *\/<br \/>\n<span style=\"color: #ff0000;\">27548D921611B0BE008EA1CD<\/span> \/* Localizable.strings *\/ = {<br \/>\nisa = PBXVariantGroup;<br \/>\nchildren = (<br \/>\n<span style=\"color: #008000;\">27548D941611B0BE008EA1CD<\/span> \/* en *\/,<br \/>\n);<br \/>\nname = Localizable.strings;<br \/>\n<span style=\"color: #0000ff;\">path<\/span> = ..\/Code;<br \/>\nsourceTree = &#8220;&lt;group&gt;&#8221;;<br \/>\n};<br \/>\n\/* End PBXVariantGroup section *\/<\/p>\n<p>\u5230\u8fd9\u91cc\u90fd\u8fd8\u7b97\u7b80\u5355\uff0c\u540e\u9762\u7684\u6b65\u9aa4\u6211\u662f\u6478\u7d22\u4e86\u624d\u660e\u767d\u3002<\/p>\n<p>\u63a5\u4e0b\u6765\uff0c\u5728\u9879\u76ee\u4e2d\u6dfb\u52a0 Localizable.strings \u8d44\u6e90\u6587\u4ef6\uff0c\u7136\u540e\u5728project.pbxproj\u6587\u4ef6\u4e2d\u641c\u7d22\u00a0\/* Localizable.strings in Resources *\/ \u5b57\u7b26\u4e32\uff0c\u627e\u5230\u524d\u9762\u7684\u5b57\u7b26\u4e32\u6807\u5fd7\uff0c\u66ff\u6362\u6211\u7ea2\u8272\u6807\u8bb0\u7684\u90e8\u5206\u3002\u8bb0\u5f97\u5594\uff0c\u7eff\u8272\u90e8\u5206\u7684\u4e0d\u8981\u66ff\u6362\uff0c\u6211\u7ed9\u66ff\u6362\u4e86\u7136\u540e xcode \u76f4\u63a5\u5d29\u6e83\u6389\u3002\u84dd\u8272\u90e8\u5206\u7684 path \u6211\u5c31\u4e0d\u6e05\u695a\u5565\u610f\u601d\u4e86\uff0c\u539f\u5e16\u4e2d\u53ea\u662f\u8bf4\u8ba9\u5927\u5bb6\u81ea\u5df1\u5c1d\u8bd5\u5c31\u77e5\u9053\u4ec0\u4e48\u60c5\u51b5\u4e86\u3002\u6211\u770b\u4e86\u4e0bproject.pbxproj\u91cc\u5176\u5b83\u5730\u65b9\u5bf9\u4e8e Localizable.strings \u6587\u4ef6\u6709 path \u5173\u952e\u5b57\u7684\u63cf\u8ff0\uff0c\u6700\u540e\u7ed9\u4fee\u6539\u6210 Localizable.strings \u8fd9\u4e2a\u5b57\u7b26\u4e32\u4e86\uff0c\u800c\u975e\u4e0a\u9762\u7684 ..\/Code\u3002<\/p>\n<p>\u91cd\u65b0\u6253\u5f00\u9879\u76ee\uff0c\u7cfb\u7edf\u9ed8\u8ba4\u7684\u8bed\u8a00\u5c31\u53c8\u56de\u6765\u4e86\u3002\u63a5\u4e0b\u6765\u5c31\u662f\u8be5\u600e\u4e48\u529e\u5c31\u600e\u4e48\u529e\u4e86\uff0c\u771f\u957f\u59ff\u52bf\u3002<\/p>\n<p>\u540e\u9762\u7684\u603b\u7ed3\u5c31\u662f\uff0cXCode \u771f\u5fc3\u6728\u6709 VS \u597d\u7528\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e0a\u4e00\u4e2a\u5e94\u7528\u4e2d\u7684\u4e0b\u62c9\u5237\u65b0\u6211\u662f\u81ea\u5df1\u6478\u7d22\u7740\u5199\u7684\uff0c\u4e0d\u8fc7\u662f\u9488\u5bf9 UITableView \u7684\uff0c\u8fd9\u6b21\u7684\u5e94\u7528\u662f\u8981\u9488\u5bf9\u4e00\u4e2a UI [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27],"tags":[136,135,137],"class_list":["post-328","post","type-post","status-publish","format-standard","hentry","category-ios","tag-136","tag-135","tag-137"],"_links":{"self":[{"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=\/wp\/v2\/posts\/328","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=328"}],"version-history":[{"count":0,"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=\/wp\/v2\/posts\/328\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=328"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=328"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=328"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}