{"id":18,"date":"2016-11-23T23:28:04","date_gmt":"2016-11-23T15:28:04","guid":{"rendered":"http:\/\/blog.fly-kite.com\/?p=18"},"modified":"2016-11-25T13:45:02","modified_gmt":"2016-11-25T05:45:02","slug":"ios%e6%89%ab%e6%8f%8f12%e4%bd%8d%e6%95%b0%e6%9d%a1%e5%bd%a2%e7%a0%81%e5%8d%b4%e6%8b%bf%e5%88%b0%e4%ba%86%e4%b8%aa13%e4%bd%8d%e7%9a%84%e6%9d%a1%e5%bd%a2%e7%a0%81%e6%80%8e%e4%b9%88%e5%8a%9e%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/flykite.me\/?p=18","title":{"rendered":"iOS\u626b\u63cf12\u4f4d\u6570\u6761\u5f62\u7801\u5374\u62ff\u5230\u4e86\u4e2a13\u4f4d\u7684\u6761\u5f62\u7801\u600e\u4e48\u529e\uff1f"},"content":{"rendered":"<p>\u5728\u5de5\u4f5c\u4e2d\u9047\u5230\u4e86\u8fd9\u4e2a\u4e00\u4e2a\u95ee\u9898\uff0c\u6211\u4eec\u7684APP\u4e2d\u6709\u626b\u63cf\u6761\u5f62\u7801\u7684\u529f\u80fd\uff0c\u4f46\u662f\u6700\u8fd1\u7531\u7528\u6237\u53cd\u5e94\u626b\u63cf\u6761\u5f62\u7801\u67e5\u8be2\u4e0d\u5230\u4fe1\u606f\uff0c\u5230\u6570\u636e\u5e93\u4e2d\u67e5\u4e86\u53d1\u73b0\u7528\u6237\u4e0a\u4f20\u7684\u6761\u5f62\u7801\u662f\u4ee50\u5f00\u5934\u768413\u4f4d\u6761\u5f62\u7801\u3002<br \/>\n<div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='http:\/\/blog.fly-kite.com\/wp-content\/uploads\/2016\/11\/UPC-A.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  loading=\"lazy\" class=\"alignnone size-full wp-image-23\" data-original=\"http:\/\/blog.fly-kite.com\/wp-content\/uploads\/2016\/11\/UPC-A.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"upc-a\" width=\"264\" height=\"200\" \/><\/div><\/p>\n<p>\u968f\u540e\u6839\u636e\u7528\u6237\u7684\u63cf\u8ff0\uff0c\u5728\u67d0\u4e1c\u4e0a\u627e\u5230\u4e86\u8be5\u5546\u54c1\u7684\u6761\u5f62\u7801\uff08\u4e0a\u56fe\uff09\uff0c\u53d1\u73b0\u8be5\u6761\u5f62\u7801\u53ea\u670912\u4f4d\u800c\u4f7f\u7528\u6211\u4eec\u7684APP\u626b\u63cf\u5f97\u5230\u7684\u6761\u5f62\u7801\u5374\u662f0300087234016\uff0c\u4e0d\u96be\u770b\u51fa\u5176\u5b9e\u524d\u9762\u591a\u51fa\u4e86\u4e00\u4e2a0\u3002<\/p>\n<p>\u8fd9\u597d\u529e\u554a\uff01\u5220\u63890\u5c31\u597d\u4e86\u561b\uff01\u7136\u800c\u4e4b\u524d\u5bf9\u6761\u5f62\u7801\u5e76\u4e0d\u662f\u5f88\u4e86\u89e3\uff0c\u626b\u63cf\u6761\u7801\u4e5f\u53ea\u662f\u76f4\u63a5\u8c03\u7528\u4e86Apple\u63d0\u4f9b\u7684AVFoundation\u6846\u67b6\uff0c\u4e07\u4e00\u771f\u7684\u67090\u5f00\u5934\u7684\u6761\u5f62\u7801\u800c\u5374\u7c97\u66b4\u5730\u5c06\u7b2c\u4e00\u4f4d\u76840\u5220\u6389\u4e86\u90a3\u5c82\u4e0d\u662f\u53c8\u5c06\u4f1a\u917f\u6210\u5927\u7978\uff1f\u62b1\u7740\u4e25\u8c28\u7684\u6001\u5ea6\uff0c\u6211\u67e5\u627e\u4e86\u4e0d\u5c11\u5173\u4e8eAVFoundation\u4ee5\u53ca\u6761\u5f62\u7801\u7684\u8d44\u6599\u3002<\/p>\n<p>\u4ece\u67d0\u5ea6\u767e\u79d1\u7684\u201c\u6761\u5f62\u7801\u201d\u8bcd\u6761\u4e2d\u5bf9\u6761\u5f62\u7801\u7684\u7c7b\u522b\u6709\u4e86\u521d\u6b65\u7684\u4e86\u89e3\uff0c\u5728\u5e38\u89c1\u7684\u6761\u5f62\u7801\u4e2d\uff0cUPC-A\u7801\u957f\u5ea6\u662f12\u4f4d\u7684\uff0cEAN13\u7801\u957f\u5ea6\u662f13\u4f4d\u7684\uff0c\u7136\u540e\u6211\u5728AVFoundation\u7684\u6587\u6863\u4e2d\u53d1\u73b0\u4e86\u8fd9\u4e00\u6bb5\u6ce8\u91ca\u3002<\/p>\n<blockquote><p>\/*!<br \/>\n@constant AVMetadataObjectTypeEAN13Code<br \/>\n@abstract An identifier for an instance of AVMetadataMachineReadableCodeObject having a type AVMetadataObjectTypeEAN13Code.<br \/>\n@discussion<br \/>\nAVMetadataMachineReadableCodeObject objects generated from EAN-13 (**including UPC-A**) codes return this constant as their type.<br \/>\n*\/<br \/>\nAVF_EXPORT NSString *const AVMetadataObjectTypeEAN13Code NS_AVAILABLE(NA, 7_0) __TVOS_PROHIBITED;<\/p><\/blockquote>\n<p>\u6ce8\u610f\u9ed1\u4f53\u5b57including UPC-A\u8fd9\u4e2a\u62ec\u53f7\u4e2d\u7684\u89e3\u91ca\u554a\u554a\u554a\u554a\u554a\u554a\u554a\uff0c\u82f9\u679c\u5c45\u7136\u5c06UPC-A\u6761\u7801\u548cEAN13\u6761\u7801\u653e\u5230\u4e86\u4e00\u8d77\u4e0d\u505a\u533a\u5206\uff01\u8fd9\u4e0d\u662f\u5751\u6211\u561b\uff01\u4e07\u4e00EAN13\u7801\u5b58\u57280\u5f00\u5934\u7684\u90a3\u6211\u8be5\u600e\u4e48\u529e\uff1f\uff08\u5f53\u65f6\u7684\u5fc3\u58f0\uff09<\/p>\n<p>\u7ee7\u7eed\u641c\u7d22\u8d44\u6599\u53d1\u73b0\u81ea\u5df1\u9017\u6bd4\u4e86\uff0c\u5173\u4e8eUPC-A\u4e0eEAN13\u7684\u8d44\u6599<br \/>\nCSDN\uff1a<a href=\"http:\/\/blog.csdn.net\/abcpanpeng\/article\/details\/8130392\" target=\"_blank\">http:\/\/blog.csdn.net\/abcpanpeng\/article\/details\/8130392<\/a><\/p>\n<blockquote><p><strong>Note\uff1a\u5b9e\u9645\u4e0a\uff0c\u4e00\u4e2aUPC-A\u7b26\u53f7\u5c31\u662f\u7b2c\u4e00\u4e2a\u6570\u5236\u4f4d\u88ab\u8bbe\u7f6e\u4e3a0\u7684EAN-13\u7b26\u53f7\u3002\u4f8b\u5982\uff0c\u201c075678164125\u201d\u662f\u4e00\u4e2aUPC-A\u7801\uff0c\u5982\u679c\u4f7f\u7528EAN-13\u5bf9\u5b83\u8fdb\u884c\u7f16\u7801\uff0c\u5c06\u662f\u201c0075678164125\u201d\u3002\u53ef\u4ee5\u770b\u51fa\u6765\uff0c\u6211\u4eec\u53ea\u662f\u5728\u524d\u9762\u52a0\u4e86\u4e00\u4e2a\u524d\u5bfc\u7684\u201c0\u201d\u3002\u5728\u4e0b\u56fe\u4e2d\uff0c\u4e0a\u9762\u7684\u90a3\u4e2a\u662fUPC-A\u7b26\u53f7\uff0c\u4e0b\u9762\u7684\u90a3\u4e2a\u662fEAN-13\u7b26\u53f7\uff0c\u6ce8\u610f\u770b\u5b83\u4eec\u4e4b\u95f4\u7684\u4e0d\u540c\u3002<\/strong><\/p><\/blockquote>\n<p>\u5916\u6587\u7f51\u7ad9\uff1a<a href=\"http:\/\/internationalbarcodes.com\/difference-between-ean-13-and-upc-a-barcodes\/\" target=\"_blank\">http:\/\/internationalbarcodes.com\/difference-between-ean-13-and-upc-a-barcodes\/<\/a><\/p>\n<blockquote><p>UPC-A Barcodes are effectively a subset of EAN-13 Barcodes. If the first digit on the EAN-13 number is a \u20180\u2019, then the bars will be of both the EAN-13 and the UPC-A (without the leading \u20180\u2019) will be identical.<\/p><\/blockquote>\n<p>\u7b80\u5355\u7ffb\u8bd1\u4e00\u4e0b\uff1aUPC-A\u6761\u7801\u5b9e\u9645\u4e0a\u662fEAN-13\u6761\u7801\u7684\u5b50\u96c6\u3002\u5982\u679c\u4e00\u4e2aEAN-13\u6761\u7801\u7684\u7b2c\u4e00\u4f4d\u6570\u5b57\u662f0\uff0c\u90a3\u4e48\u8fd9\u4e2a\u6761\u7801\u65e2\u662fEAN-13\u7801\u4e5f\u540c\u6837\u662f\u662fUPC-A\u7801\uff08\u53bb\u6389\u5f00\u5934\u76840\uff09\u3002<\/p>\n<p>StackOverFlow\uff1a<a href=\"http:\/\/stackoverflow.com\/questions\/22767584\/ios7-barcode-scanner-api-adds-a-zero-to-upca-barcode-format\" target=\"_blank\">http:\/\/stackoverflow.com\/questions\/22767584\/ios7-barcode-scanner-api-adds-a-zero-to-upca-barcode-format<\/a><\/p>\n<p>&lt;<div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='http:\/\/blog.fly-kite.com\/wp-content\/uploads\/2016\/11\/stackoverflow\u622a\u56fe.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  loading=\"lazy\" class=\"alignnone size-full wp-image-22\" data-original=\"http:\/\/blog.fly-kite.com\/wp-content\/uploads\/2016\/11\/stackoverflow\u622a\u56fe.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"stackoverflow%e6%88%aa%e5%9b%be\" width=\"725\" height=\"282\" \/><\/div><\/p>\n<p>\u6d4f\u89c8\u4e86\u5404\u7c7b\u6587\u7ae0\u4e4b\u540e\u786e\u5b9a\u4e86\u4e00\u4ef6\u4e8b\uff1a\u4ee50\u5f00\u5934\u7684EAN13\u7801\u5b9e\u9645\u4e0a\u5c31\u662fUPC-A\u7801\u5728\u524d\u9762\u8865\u4e86\u4e00\u4e2a0\uff0c\u5728AVFoundation\u626b\u63cf\u5f97\u5230\u7684\u7ed3\u679c\u91cc\u53ea\u9700\u8981\u5224\u65ad\u6761\u7801\u7684\u7c7b\u522b\u662f\u5426AVMetadataObjectTypeEAN13Code\u5e76\u4e14\u662f\u5426\u4ee50\u5f00\u5934\uff0c\u5982\u679c\u662f\u7684\u8bdd\u5c31\u628a\u7b2c\u4e00\u4f4d\u76840\u76f4\u63a5\u5220\u6389\u5c31\u597d\u5566~<\/p>\n<h2>\u7b80\u5355\u6269\u5c55<\/h2>\n<p>UPC-A\u4e3a\u65e9\u671f\u4f7f\u7528\u7684\u6761\u5f62\u7801\uff08\u51fa\u73b0\u4e8e1973\u5e74\uff09\uff0cEAN13\u662f\u540e\u6765\u4e3a\u4e86\u80fd\u591f\u66f4\u5e7f\u6cdb\u5730\u4f7f\u7528\u6761\u5f62\u7801\u800c\u53d1\u660e\u7684\uff0c\u517c\u5bb9UPC-A\u3002EAN13\u662fUPC-A\u7684\u8d85\u96c6\uff08\u5373EAN13\u5305\u542bUPC-A\uff09\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u5de5\u4f5c\u4e2d\u9047\u5230\u4e86\u8fd9\u4e2a\u4e00\u4e2a\u95ee\u9898\uff0c\u6211\u4eec\u7684APP\u4e2d\u6709\u626b\u63cf\u6761\u5f62\u7801\u7684\u529f\u80fd\uff0c\u4f46\u662f\u6700\u8fd1\u7531\u7528\u6237\u53cd\u5e94\u626b\u63cf\u6761\u5f62\u7801\u67e5\u8be2\u4e0d\u5230\u4fe1\u606f\uff0c\u5230\u6570\u636e [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":22,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/flykite.me\/index.php?rest_route=\/wp\/v2\/posts\/18"}],"collection":[{"href":"https:\/\/flykite.me\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/flykite.me\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/flykite.me\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/flykite.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=18"}],"version-history":[{"count":1,"href":"https:\/\/flykite.me\/index.php?rest_route=\/wp\/v2\/posts\/18\/revisions"}],"predecessor-version":[{"id":21,"href":"https:\/\/flykite.me\/index.php?rest_route=\/wp\/v2\/posts\/18\/revisions\/21"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/flykite.me\/index.php?rest_route=\/wp\/v2\/media\/22"}],"wp:attachment":[{"href":"https:\/\/flykite.me\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=18"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/flykite.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=18"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/flykite.me\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=18"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}