{"id":52,"date":"2012-12-28T17:48:52","date_gmt":"2012-12-28T09:48:52","guid":{"rendered":"http:\/\/sunyuping.cn\/?p=52"},"modified":"2012-12-28T17:48:52","modified_gmt":"2012-12-28T09:48:52","slug":"%e5%a6%82%e6%9e%9c%e7%88%b1%ef%bc%8c%e8%af%b7%e6%b7%b1%e7%88%b1%ef%bc%9a10%e5%a4%a7ios%e5%bc%80%e5%8f%91%e8%80%85%e6%9c%80%e5%96%9c%e7%88%b1%e7%9a%84%e7%b1%bb%e5%ba%93","status":"publish","type":"post","link":"https:\/\/www.sunyuping.com\/index.php\/2012\/12\/28\/%e5%a6%82%e6%9e%9c%e7%88%b1%ef%bc%8c%e8%af%b7%e6%b7%b1%e7%88%b1%ef%bc%9a10%e5%a4%a7ios%e5%bc%80%e5%8f%91%e8%80%85%e6%9c%80%e5%96%9c%e7%88%b1%e7%9a%84%e7%b1%bb%e5%ba%93\/","title":{"rendered":"\u5982\u679c\u7231\uff0c\u8bf7\u6df1\u7231\uff1a10\u5927iOS\u5f00\u53d1\u8005\u6700\u559c\u7231\u7684\u7c7b\u5e93"},"content":{"rendered":"<p>\t\t\t\t\u8be510\u5927iOS\u5f00\u53d1\u8005\u6700\u559c\u7231\u7684\u5e93\u7531\u201ciOS\u8f85\u5bfc\u56e2\u961f\u201d\u6210\u5458<a href=\"http:\/\/www.raywenderlich.com\/about#marcelofabri\" target=\"_blank\" rel=\"noopener noreferrer\">Marcelo Fabri<\/a>\u7ec4\u7ec7\u6295\u7968\u9009\u4e3e\u800c\u5f97\uff0c\u53c2\u4e0e\u8005\u5305\u62ec\u5f00\u53d1\u8005\u56e2\u961f\uff0ciOS\u8f85\u5bfc\u56e2\u961f\u4ee5\u53ca\u884c\u4e1a\u5609\u5bbe\u3002\u6bcf\u4e2a\u56e2\u961f\u90fd\u8981\u6839\u636e\u4ee5\u4e0b\u89c4\u5219\u9009\u51fa\u4e94\u4e2a\u6700\u597d\u7684\u5e93\uff1a1\uff09\u4e0d\u80fd\u6295\u81ea\u5df1\u5199\u7684\u5e93\uff1b2\uff09\u6392\u9664\u5927\u7684\u67b6\u6784\uff0c\u6bd4\u5982\u6e38\u620f\u7c7b\u67b6\u6784\uff1b3\uff09\u6392\u9664\u4e0d\u5728\u8bbe\u5907\u4e0a\u8fd0\u884c\u7684\u5e93\uff0c\u4f8b\u5982<a href=\"http:\/\/cocoapods.org\/\" target=\"_blank\" rel=\"noopener noreferrer\">CocoaPods<\/a>\u6216\u8005<a href=\"https:\/\/github.com\/mattt\/rack-core-data\" target=\"_blank\" rel=\"noopener noreferrer\">Rack::CoreData<\/a>\u4e5f\u6392\u9664\u5728\u5916\u3002<\/p>\n<p>\u6700\u7ec8\u8bc4\u9009\u51fa\u4e86\u5982\u4e0b10\u5927iOS\u5f00\u53d1\u8005\u6700\u559c\u7231\u7684\u5e93\uff1a<\/p>\n<p><strong>1\uff09<\/strong><a href=\"http:\/\/sstoolk.it\/%20Sam%20Soffes\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>SSToolkit<\/strong><\/a><\/p>\n<p>Sam Soffes\u7b80\u76f4\u5c31\u662f\u4e00\u4e2aObjective-C\u5929\u624d\uff0cSSToolkit\u5c31\u662f\u4e2a\u4f8b\u5b50\u3002\u4f5c\u8005\u5c06\u4ed6\u5728App\u4e2d\u5b9e\u73b0\u7684\u5404\u79cd\u5404\u6837\u7684UI\u6548\u679c\u505a\u6210\u4e2a\u4ee3\u7801\u5e93\uff0c\u65b9\u4fbf\u5176\u4ed6\u4eba\u4f7f\u7528\u3002<\/p>\n<ul>\n<li>SSToolkit\u4e00\u4e9b\u57fa\u7840\u7684\u7c7b\u5305\u62ecSSCollectionView\uff0cSSGradientView<\/li>\n<li>\u4eceUI\u90e8\u4ef6\u5230\u4fbf\u5229\u7684Foundation\u7c7b\u522b\u90fd\u7ecf\u8fc7\u7cbe\u5fc3\u8bbe\u8ba1\u5e76\u8bb0\u5f55\u5728\u6848\uff0c\u5e2e\u52a9\u5f00\u53d1\u8005\u89e3\u51b3\u4e00\u4e9b\u666e\u904d\u95ee\u9898\uff0c\u6bd4\u5982\u8ffd\u8e2a\u4e00\u6b3e\u8bbe\u5907\u662f\u5426\u6709\u89c6\u7f51\u819c\u663e\u793a\u5c4f\u6216\u8005\u662f\u5426\u80fd\u526a\u88c1\u56fe\u7247<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" src=\"http:\/\/articles.csdn.net\/uploads\/allimg\/121107\/178_121107105053_1_lit.jpg\" width=\"500\" height=\"329\" border=\"0\" \/><\/p>\n<p><strong>2\uff09<\/strong><a href=\"https:\/\/github.com\/BradLarson\/GPUImage\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>GPUImage<\/strong><\/a><\/p>\n<p>GPUImage\u4e00\u4e2a\u529f\u80fd\u5341\u5206\u5f3a\u5927\u53c8\u5341\u5206\u6613\u7528\u7684<strong>\u56fe\u50cf\u5904\u7406\u5e93<\/strong>\u3002<\/p>\n<ul>\n<li>\u63d0\u4f9b\u5404\u79cd\u5404\u6837\u7684\u56fe\u50cf\u5904\u7406\u6ee4\u955c\uff0c\u5e76\u4e14\u652f\u6301\u7167\u76f8\u673a\u548c\u6444\u50cf\u673a\u7684\u5b9e\u65f6\u6ee4\u955c<\/li>\n<li>\u662f\u57fa\u4e8eGPU\u7684\u56fe\u50cf\u52a0\u901f\uff0c\u56fe\u50cf\u5904\u7406\u901f\u5ea6\u8d85\u5feb\uff0c\u5e76\u4e14\u80fd\u591f\u81ea\u5b9a\u4e49\u56fe\u50cf\u6ee4\u955c<\/li>\n<li>\u652f\u6301ARC<\/li>\n<\/ul>\n<p>\u4e0d\u8fc7\u73b0\u5728\u8fd8\u7f3a\u5c11\u4e00\u4e9bCore Image\u62e5\u6709\u7684\u4e00\u4e9b\u5148\u8fdb\u529f\u80fd\uff0c\u6bd4\u5982\u9762\u90e8\u63a2\u6d4b\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" src=\"http:\/\/articles.csdn.net\/uploads\/allimg\/121107\/178_121107105123_1_lit.jpg\" width=\"500\" height=\"317\" border=\"0\" \/><\/p>\n<p>\u6ee4\u955c\u6548\u679c\u56fe<\/p>\n<p><strong>3\uff09<\/strong><a href=\"https:\/\/github.com\/square\/SocketRocket\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>SocketRocket<\/strong><\/a><\/p>\n<p>SocketRocket\u662f\u4e00\u4e2a<strong>WebSocket\u5ba2\u6237\u7aef<\/strong>\uff08WebSocket\u662f\u9002\u7528\u4e8eWeb\u5e94\u7528\u7684\u4e0b\u4e00\u4ee3\u5168\u53cc\u5de5\u901a\u8baf\u534f\u8bae\uff0c\u88ab\u79f0\u4e3a\u201cWeb\u7684TCP\u201d\uff0c\u5b83\u5b9e\u73b0\u4e86\u6d4f\u89c8\u5668\u4e0e\u670d\u52a1\u5668\u7684\u53cc\u5411\u901a\u4fe1\uff09\uff0c\u91c7\u7528Object-C\u7f16\u5199\u3002\u8d85\u7ea7\u7a33\u56fa\u53c8\u7b80\u5355\u6613\u7528\uff0c\u7b80\u76f4\u5c31\u662f\u5b9e\u65f6\u5e94\u7528\u7684\u6700\u4f73\u62cd\u6863\u3002<\/p>\n<ul>\n<li>SocketRocket\u9075\u5faa\u6700\u65b0\u7684WebSocket\u89c4\u8303RFC 6455<\/li>\n<li>\u53ea\u6709\u90e8\u5206\u6bd4\u8f83\u65b0\u7684\u6d4f\u89c8\u5668\u6bd4\u5982Chrome\u652f\u6301\u8fd9\u4e2a\u5e93<\/li>\n<li>\u652f\u6301TLS (wss)\uff0ciOS 4.x\u7cfb\u7edf<\/li>\n<li>\u4f7f\u7528NSStream\/CFNetworking\uff08\u53ef\u514d\u8d39\u4eab\u7528\uff09\u3001\u4f7f\u7528ARC<\/li>\n<li>\u91c7\u7528\u5e76\u884c\u67b6\u6784<\/li>\n<li>\u5927\u90e8\u5206\u7684\u5de5\u4f5c\u7531\u540e\u7aef\u7684\u5de5\u4f5c\u5b8c\u6210\u3001\u57fa\u4e8e\u59d4\u6258\u7f16\u7a0b\u3002\u65e0\u4efb\u4f55UI\u5305\u4f9d\u8d56\u3002<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" src=\"http:\/\/articles.csdn.net\/uploads\/allimg\/121107\/178_121107105154_1_lit.jpg\" width=\"344\" height=\"300\" border=\"0\" \/><\/p>\n<p><a href=\"http:\/\/www.iteye.com\/news\/24176\" target=\"_blank\" rel=\"noopener noreferrer\">\u56e0\u4e3aSquare\uff0c\u624d\u6709\u4e86SocketRocket<\/a><\/p>\n<p><strong>4\uff09<a href=\"http:\/\/hockeykit.net\/\" target=\"_blank\" rel=\"noopener noreferrer\">HockeyKit<\/a><\/strong><\/p>\n<p>HockeyKit\u662f\u4e00\u4e2aiOS Ad-Hoc\u81ea\u52a8\u66f4\u65b0\u6846\u67b6\u3002\u6240\u6709\u7684\u82f9\u679c\u5e97\u4e2d\u7684App\u90fd\u53ef\u4ee5\u4f7f\u7528\u5b83\uff0c\u5b83<strong>\u80fd<\/strong><strong>\u663e\u8457\u63d0\u9ad8\u6574\u4e2aBeta\u6d4b\u8bd5\u8fc7\u7a0b<\/strong>\uff0c\u5206\u4e3a\u4e24\u90e8\u5206\uff1a\u670d\u52a1\u5668\u548c\u5ba2\u6237\u7aef\u6846\u67b6\u3002\u670d\u52a1\u7aef\u7ec4\u4ef6\u4e0d\u9700\u8981\u5ba2\u6237\u7aef\u5e93\u5c31\u80fd\u5355\u72ec\u5de5\u4f5c\u3002<\/p>\n<ul>\n<li>\u53ea\u9700\u5728\u670d\u52a1\u5668\u4e0a\u5b89\u88c5\u4e00\u6b21\u670d\u52a1\u7aef\uff0c\u5c31\u53ef\u4ee5\u5904\u7406bundle identifier\u4e0d\u540c\u7684\u591a\u4e2a\u5e94\u7528\u7a0b\u5e8f(\u6709<a href=\"http:\/\/hockeykit.net\/\" target=\"_blank\" rel=\"noopener noreferrer\">\u5f00\u53d1\u8005<\/a>\u5f3a\u70c8\u5efa\u8bae\u5bf9Debug\u3001AdHocBeta\u548cAppStore\u53d1\u5e03\u7248\u4f7f\u7528\u4e0d\u540c\u7684Bundle identifier\uff09<\/li>\n<li>\u9ed8\u8ba4\u5f53App\u542f\u52a8\u6216\u5524\u9192\u65f6\uff0c\u5ba2\u6237\u7aef\u4f1a\u4ece\u670d\u52a1\u5668\u68c0\u6d4b\u66f4\u65b0\uff0c\u7528\u6237\u53ef\u4ee5\u5728\u8bbe\u7f6e\u5bf9\u8bdd\u6846\u4e2d\u4fee\u6539\u8fd9\u4e2a\u8bbe\u7f6e\uff1a\u4e00\u5929\u4e00\u6b21\u6216\u624b\u52a8\u68c0\u6d4b\u66f4\u65b0<\/li>\n<li>\u9664\u4e86\u652f\u6301iOS\uff0cHokeyKit\u4e5f\u652f\u6301Android\u5e73\u53f0\uff0c\u4e0d\u8fc7Android\u7248\u8fd8\u5904\u5728Alpha\u9636\u6bb5\uff0c\u652f\u6301OTA\u53ca\u5e94\u7528\u5185\u66f4\u65b0<\/li>\n<li>\u4e3aHockeyKit\u7528\u6237\u63d0\u4f9b\u670d\u52a1\u5668\u6258\u7ba1\u670d\u52a1<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" src=\"http:\/\/articles.csdn.net\/uploads\/allimg\/121107\/178_121107105344_1.jpg\" width=\"414\" height=\"447\" border=\"0\" \/><\/p>\n<p>Beta\u6d4b\u8bd5\u6f14\u793a<\/p>\n<p><strong>5\uff09<\/strong><a href=\"https:\/\/github.com\/johnezang\/JSONKit\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>JSONKit<\/strong><\/a><\/p>\n<p>JSONKit\u662fObjective C\u5e73\u53f0\u4e0a\u6bd4\u8f83\u5e38\u7528\u7684<strong>JSON\u6570\u636e\u8bbf\u95ee\u5de5\u5177\u3002<\/strong><\/p>\n<ul>\n<li>JSONKit\u80fd\u5728\u8fd0\u884c\u7684\u60c5\u51b5\u4e0b\u4e0elibz.dylib\u81ea\u52a8\u8fde\u63a5\u800c\u65e0\u987b\u4eba\u5de5\u8fde\u63a5<\/li>\n<li>\u5728\u89e3\u6790\u671f\u95f4\uff0c\u5982\u679c\u68c0\u6d4b\u5230\u6709gzip\u6587\u4ef6\uff0cJSONKit\u80fd\u81ea\u52a8\u89e3\u538b<\/li>\n<li>\u901f\u5ea6\u8d85\u5feb\uff0c\u652f\u6301\u4e4b\u524d\u7684iOS\u7248\u672c\uff08\u4f46\u8981\u6ce8\u610f\u4e00\u70b9\uff0c\u4eceiOS 5\u5f00\u59cb\uff0ciOS\u5c31\u5df2\u7ecf\u6709\u672c\u5730JSON\u89e3\u6790\u5de5\u5177\u4e86\uff09<\/li>\n<li>JSONKit\u7684\u6027\u80fd\u8fdc\u4f18\u4e8eJSON-Framework\uff08\u5373SBJSON\uff09\uff0cJSONKit\u4f7f\u7528\u8d77\u6765\u4e5f\u975e\u5e38\u7b80\u5355\uff0c\u8868\u73b0\u6027\u80fd\u6bd4\u82f9\u679ciOS 5.0\u4e2d\u7684NSJSONSerialization\u8fd8\u8981\u597d\uff0c\u901f\u5ea6\u6bd4NSJSONSerialization\u5feb\u4e0a\u00a025% to 40%\uff0c\u5df2\u7ecf\u662f\u975e\u5e38\u5927\u7684\u4e00\u4e2a\u5dee\u8ddd\u4e86<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" src=\"http:\/\/articles.csdn.net\/uploads\/allimg\/121107\/178_121107150424_1_lit.jpg\" width=\"600\" height=\"219\" border=\"0\" \/><\/p>\n<p>Benchmark\u6d4b\u8bd5\u7ed3\u679c\u56fe<\/p>\n<p><strong>6\uff09<a href=\"https:\/\/github.com\/magicalpanda\/MagicalRecord\" target=\"_blank\" rel=\"noopener noreferrer\">MagicalRecord<\/a><\/strong><\/p>\n<p>\u4f7f\u7528Core Data\u65f6\u4f1a\u7528\u5230\u8bb8\u591a\u5f15\u7528\u4ee3\u7801\uff0c\u8ba9\u5de5\u4f5c\u53d8\u5f97\u5f88\u590d\u6742\uff0c\u8ba9\u4eba\u6709\u79cd\u632b\u8d25\u611f\uff0cMagicalRecord\u7684\u51fa\u73b0\u5c31\u662f\u89e3\u51b3\u8fd9\u4e9b\u95ee\u9898\u7684\u3002<\/p>\n<ul>\n<li>\u4e0d\u4f46<strong>\u80fd\u6e05\u7406Core Data\u4ee3\u7801<\/strong>\uff0c\u8fd8\u53ef\u5728\u5fc5\u8981\u7684\u65f6\u5019\u8fdb\u884cNSFetchRequest\u4fee\u6539<\/li>\n<li>\u9700\u8981iOS 5.0\u53ca\u4ee5\u4e0a\u7248\u672c\uff0cMac OS 10.7\u53ca\u4ee5\u4e0a\u7248\u672c<\/li>\n<li>\u4f7f\u7528ARC<\/li>\n<li>\u80fd\u5229\u7528iCloud\u540c\u6b65Core Data\u5546\u5e97<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" src=\"http:\/\/articles.csdn.net\/uploads\/allimg\/121107\/178_121107112539_1.jpg\" width=\"450\" height=\"337\" border=\"0\" \/><\/p>\n<p><strong>7\uff09<a href=\"http:\/\/restkit.org\/\" target=\"_blank\" rel=\"noopener noreferrer\">RestKit<\/a><\/strong><\/p>\n<p>Restkit\u662f\u4e00\u4e2a\u5f00\u6e90\u7684Objective-C\u6846\u67b6\u3002<\/p>\n<ul>\n<li>\u53ef\u5728iOS\u548cMac OS X\u7684Objective-C\u4e2d\u4e0eRESTful Web\u670d\u52a1\u8fdb\u884c\u7b80\u5355\u4ea4\u4e92<\/li>\n<li>\u5305\u542b\u7b80\u5355\u7684HTTP request\/response API<\/li>\n<li>\u5e26\u6709\u5f3a\u5927\u7684\u5bf9\u8c61\u6620\u5c04\u7cfb\u7edf\uff0c\u7528\u4e8e\u51cf\u5c11\u4ee3\u7801\u957f\u5ea6<\/li>\n<li><strong>RestKit\u53ef\u964d\u4f4eJSON\/XML\u7684\u5904\u7406\u7684\u8d44\u6e90\u6d88\u8017<\/strong>\uff0c\u652f\u6301\u901a\u8fc7SBJSON\u548cYAJL\u8fdb\u884cJSON\u89e3\u6790<\/li>\n<\/ul>\n<p>\u5f53\u4f60\u7684\u5e94\u7528\u9700\u8981\u4e0e\u4e00\u4e2aREST\u8fdc\u7a0bAPI\u6574\u5408\u7684\u65f6\u5019\uff0cRestKit\u5c31\u4f1a\u6d3e\u4e0a\u7528\u573a\uff0c\u5e2e\u4f60\u51cf\u5c11\u5de5\u4f5c\u91cf\uff08<a href=\"http:\/\/www.raywenderlich.com\/13097\/intro-to-restkit-tutorial\" target=\"_blank\" rel=\"noopener noreferrer\">\u6559\u7a0b\u6307\u5bfc<\/a>\uff09\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" src=\"http:\/\/articles.csdn.net\/uploads\/allimg\/121107\/178_121107111741_1.jpg\" width=\"500\" height=\"346\" border=\"0\" \/><\/p>\n<p>\u6dfb\u52a0Restkit<\/p>\n<p><strong>8\uff09<a href=\"https:\/\/testflightapp.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">TestFlight<\/a><\/strong><\/p>\n<p>\u8981\u60f3\u8f7b\u677e\u53d1\u9001\u5e76\u516c\u6d4b\u5e94\u7528\uff1f\u7528TestFlight\u5427\uff0c<strong>\u65e0\u987b\u901a\u8fc7iTunes<\/strong>\uff0c<a href=\"http:\/\/www.diwublog.com\/archives\/157\" target=\"_blank\" rel=\"noopener noreferrer\">\u6709\u4eba<\/a>\u66fe\u7ecf\u6574\u7406\u51fa\u4e86\u5b83\u7684\u4e09\u5927\u6740\u624b\u950f\uff1a<\/p>\n<ul>\n<li>\u8f7b\u677e\u91c7\u96c6\u6d4b\u8bd5\u7528\u6237\u7684UDID\u548ciOS \u7248\u672c\u3001\u786c\u4ef6\u7248\u672c\uff0c\u5e76\u53d1\u9001\u7ed9\u5f00\u53d1\u8005\u3002\u5728\u63a5\u6536\u5230\u5f00\u53d1\u8005\u7684TestFlight\u9080\u8bf7\u4e4b\u540e\uff0c\u7528\u6237\u53ea\u9700\u62ff\u81ea\u5df1\u7684iPhone\u5373\u53ef\u6253\u5f00\u9080\u8bf7\u4e2d\u7684\u94fe\u63a5\uff0c\u6ce8\u518c\u8d26\u53f7\uff0c\u6ce8\u518c\u786c\u4ef6<\/li>\n<li>\u6709\u4e86\u6d4b\u8bd5\u5305\u4ee5\u540e\uff0c\u4e0d\u7528\u4e00\u4e2a\u4e2a\u53d1\u90ae\u4ef6\uff0c\u53ea\u9700\u8981\u5c06IPA\u4e0a\u4f20\u5230TestFlight\u7f51\u7ad9\uff0c\u7136\u540e\u52fe\u9009\u5408\u9002\u7684\u6d4b\u8bd5\u7528\u6237\uff0c\u70b9\u51fb\u786e\u8ba4\uff0c\u4f60\u5c31\u5b8c\u4e8b\u4e86\uff0c\u7528\u6237\u4f1a\u9a6c\u4e0a\u6536\u5230TestFlight\u7684\u66f4\u65b0\u901a\u77e5\uff0c\u7136\u540e\u53ea\u9700\u5728\u4ed6\u7684iPhone\u4e0a\u767b\u5f55TestFlight\u7f51\u7ad9\uff0cTestFlight\u5c31\u4f1a\u81ea\u52a8\u5c06\u6d4b\u8bd5IPA\u5b89\u88c5\u5230\u4ed6\u7684iPhone\u4e0a<\/li>\n<li>\u4e0d\u7528\u62c5\u5fc3\u7528\u6237\u6ca1\u6709\u6210\u529f\u5b89\u88c5\uff0cTestfligh\u80fd\u591f\u7ed9\u4f60\u5b9e\u65f6\u53cd\u9988\u6700\u65b0\u7edf\u8ba1\u6570\u636e<\/li>\n<\/ul>\n<p>\u73b0\u5728\u8fd8\u63a8\u51fa\u4e86\u684c\u9762App\uff0c\u7528\u8d77\u6765\u66f4\u5feb\u66f4\u65b9\u4fbf\u4e86\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" src=\"http:\/\/articles.csdn.net\/uploads\/allimg\/121107\/178_121107150650_1_lit.jpg\" width=\"500\" height=\"287\" border=\"0\" \/><\/p>\n<p><strong>9\uff09<a href=\"https:\/\/github.com\/jdg\/MBProgressHUD\" target=\"_blank\" rel=\"noopener noreferrer\">MBProgressHUD<\/a><\/strong><\/p>\n<p>\u82f9\u679c\u7684\u5e94\u7528\u7a0b\u5e8f\u4e00\u822c\u90fd\u4f1a\u7528\u4e00\u79cd\u534a\u900f\u660e\u7684\u8fdb\u5ea6\u663e\u793a\u6548\u679c\uff0c\u4e0d\u8fc7\u8fd9\u4e2aAPI\u662f\u4e0d\u516c\u5f00\u7684\uff0c\u56e0\u6b64\u4f60\u8981\u662f\u7528\u4e86\uff0c\u5f88\u53ef\u80fd\u88ab\u8e22\u51faAppStore\u3002\u800c<a href=\"http:\/\/www.baidu.com\/link?url=aac69b30fc293c5e471ef23de092fddc99fdd6886802aae824cc8788ab9544267a50e0f563d5bc9a7feb0d926ce2d9030dad465bec6d8faa864aeced090d4741826e69c6c1f9fed0b3347beac4b1c51c7449425c7d96\" target=\"_blank\" rel=\"noopener noreferrer\">MBProgressHUD<\/a>\u63d0\u4f9b\u4e86\u4e00\u4e2a\u66ff\u4ee3\u65b9\u6848\uff0c\u5b9e\u73b0\u7684\u6548\u679c\u6839\u672c\u770b\u4e0d\u51fa\u548c\u5b98\u65b9\u7a0b\u5e8f\u6709\u4ec0\u4e48\u5dee\u522b\u3002<\/p>\n<ul>\n<li>\u540c\u65f6\u8fd8\u63d0\u4f9b\u4e86\u5176\u4ed6\u9644\u52a0\u529f\u80fd\uff0c\u6bd4\u5982\u865a\u62df\u8fdb\u5c55\u6307\u793a\u7b26\uff0c\u4ee5\u53ca\u5b8c\u6210\u63d0\u793a\u4fe1\u606f<\/li>\n<li>\u4f60\u4e5f\u53ef\u4ee5\u5b89\u88c5\u5176\u4ed6\u4e1c\u897f\uff0c\u6bd4\u5982\u9700\u8981\u663e\u793a\u7684\u6587\u672c\uff0c\u52a8\u753b\uff0cx\u53cay\u8bbe\u7f6e\u7b49\u7b49\uff0c\u6709\u8bb8\u591aiOS\u8f85\u5bfc\u5458\u90fd\u5728\u7528\u5b83\uff0c\u4e00\u822c\u7528\u6765\u4f5c\u5e94\u7528\u5185\u8d2d\u4e70<\/li>\n<li>MBProgressHUD\u9002\u7528\u4e8e\u4efb\u4f55iOS\u7248\u672c\uff0c\u9700\u8981LLVM 3.0\u53ca\u4ee5\u4e0a\u7f16\u8bd1\u5668\u67b6\u6784\uff0c\u517c\u5bb9ARC\u53ca\u975eARC\u9879\u76ee\uff0c\u8fd9\u5f97\u53d6\u51b3\u4e8e\u82f9\u679c\u7684\u4ee5\u4e0b\u67b6\u6784\uff1a<\/li>\n<\/ul>\n<ol>\n<li>Foundation.\u67b6\u6784<\/li>\n<li>UIKit.\u67b6\u6784<\/li>\n<li>CoreGraphics.\u67b6\u6784<\/li>\n<\/ol>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" src=\"http:\/\/articles.csdn.net\/uploads\/allimg\/121107\/178_121107110740_1.JPG\" width=\"450\" height=\"274\" border=\"0\" \/><\/p>\n<p>\u900f\u660e\u8fdb\u5ea6\u6548\u679c<\/p>\n<p><strong>10\uff09<a href=\"https:\/\/github.com\/AFNetworking\/AFNetworking\" target=\"_blank\" rel=\"noopener noreferrer\">AFNetworking<\/a><\/strong><\/p>\n<p>AFNetworking\u662f\u4e00\u4e2a\u8f7b\u91cf\u7ea7\u7684<strong>iOS\u7f51\u7edc\u670d\u52a1\u7c7b\u5e93<\/strong>\u3002\u5b83\u5efa\u7acb\u5728NSURLConnection\u548cNSOperation\u7b49\u7c7b\u5e93\u7684\u57fa\u7840\u4e0a\uff0c\u8ba9\u5f88\u591a\u7f51\u7edc\u901a\u4fe1\u529f\u80fd\u7684\u5b9e\u73b0\u53d8\u5f97\u5341\u5206\u7b80\u5355\u3002<\/p>\n<ul>\n<li>\u652f\u6301HTTP\u8bf7\u6c42\u548c\u57fa\u4e8eREST\u7684\u7f51\u7edc\u670d\u52a1\uff08\u5305\u62ecGET\u3001POST\u3001 PUT\u3001DELETE\u7b49\uff09<\/li>\n<li>\u652f\u6301ARC<\/li>\n<li>\u8981\u6c42iOS 5.0\u53ca\u4ee5\u4e0a\u7248\u672c<\/li>\n<li>\u6709\u4e00\u4e9b\u63d2\u4ef6\u6269\u5c55\u5df2\u6709\u7684\u529f\u80fd\uff0c\u8fd8\u6709\u4e00\u4e2a\u529f\u80fd\u9f50\u5168\u7684API<\/li>\n<li>\u4eceURL\u4e2d\u83b7\u53d6JSON\u7279\u522b\u7b80\u5355\uff0c\u7b80\u5355\u5230\u4ec0\u4e48\u7a0b\u5ea6\uff1f\u770b\u4e0b\u9762\u51e0\u884c\u4ee3\u7801<\/li>\n<\/ul>\n<ol>\n<li>NSURL\u00a0*url\u00a0=\u00a0[NSURL\u00a0URLWithString:@&#8221;https:\/\/alpha-api.app.net\/stream\/0\/posts\/stream\/global&#8221;];<\/li>\n<li>NSURLRequest\u00a0*request\u00a0=\u00a0[NSURLRequest\u00a0requestWithURL:url];<\/li>\n<li>AFJSONRequestOperation\u00a0*operation\u00a0=\u00a0[AFJSONRequestOperation\u00a0JSONRequestOperationWithRequest:request\u00a0success:^(NSURLRequest\u00a0*request,\u00a0NSHTTPURLResponse\u00a0*response,\u00a0id\u00a0JSON)\u00a0{<\/li>\n<li>\u00a0\u00a0\u00a0\u00a0NSLog(@&#8221;App.net\u00a0Global\u00a0Stream:\u00a0%@&#8221;,\u00a0JSON);<\/li>\n<li>}\u00a0failure:nil];<\/li>\n<li>[operation\u00a0start];<\/li>\n<\/ol>\n<p>\u5728\u8fd910\u5927\u5e93\u4e2d\uff0cAFNetworking\u662f\u6700\u5927\u8d62\u5bb6\uff0c\u73b0\u5728\u662fGitHub\u4e0a\u7b2c\u4e09\u5927Objetive-C\u5e93\uff0ciPhone\uff0ciPad\u4e0a\u5f88\u591a\u8457\u540d\u5e94\u7528\u90fd\u4f7f\u7528\u8fd9\u4e2a\u7c7b\u5e93\uff0c\u662f\u5f88\u591a\u4eba\u7684\u6700\u7231\u3002<\/p>\n<p>\u8fd9\u91cc\u628a\u597d\u7528\u7684\u5e93\u6574\u7406\u51fa\u6765\u4ecb\u7ecd\u7ed9\u5927\u5bb6\uff0c\u5e0c\u671b\u771f\u6b63\u80fd\u5e2e\u5230\u5f00\u53d1\u8005\uff0c\u8ba9\u4f60\u4eec\u7684\u751f\u6d3b\u53d8\u5f97\u66f4\u7b80\u5355\u3002\t\t<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8be510\u5927iOS\u5f00\u53d1\u8005\u6700\u559c\u7231\u7684\u5e93\u7531\u201ciOS\u8f85\u5bfc\u56e2\u961f\u201d\u6210\u5458Marcelo Fabri\u7ec4\u7ec7\u6295\u7968\u9009\u4e3e\u800c\u5f97\uff0c\u53c2\u4e0e\u8005\u5305\u62ec\u5f00 &#8230; <a title=\"\u5982\u679c\u7231\uff0c\u8bf7\u6df1\u7231\uff1a10\u5927iOS\u5f00\u53d1\u8005\u6700\u559c\u7231\u7684\u7c7b\u5e93\" class=\"read-more\" href=\"https:\/\/www.sunyuping.com\/index.php\/2012\/12\/28\/%e5%a6%82%e6%9e%9c%e7%88%b1%ef%bc%8c%e8%af%b7%e6%b7%b1%e7%88%b1%ef%bc%9a10%e5%a4%a7ios%e5%bc%80%e5%8f%91%e8%80%85%e6%9c%80%e5%96%9c%e7%88%b1%e7%9a%84%e7%b1%bb%e5%ba%93\/\" aria-label=\"\u9605\u8bfb \u5982\u679c\u7231\uff0c\u8bf7\u6df1\u7231\uff1a10\u5927iOS\u5f00\u53d1\u8005\u6700\u559c\u7231\u7684\u7c7b\u5e93\">\u9605\u8bfb\u66f4\u591a<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"aside","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-52","post","type-post","status-publish","format-aside","hentry","category-2","post_format-post-format-aside"],"_links":{"self":[{"href":"https:\/\/www.sunyuping.com\/index.php\/wp-json\/wp\/v2\/posts\/52","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sunyuping.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sunyuping.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sunyuping.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sunyuping.com\/index.php\/wp-json\/wp\/v2\/comments?post=52"}],"version-history":[{"count":0,"href":"https:\/\/www.sunyuping.com\/index.php\/wp-json\/wp\/v2\/posts\/52\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.sunyuping.com\/index.php\/wp-json\/wp\/v2\/media?parent=52"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sunyuping.com\/index.php\/wp-json\/wp\/v2\/categories?post=52"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sunyuping.com\/index.php\/wp-json\/wp\/v2\/tags?post=52"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}