{"rsdb":{"rid":"387126","subhead":"","postdate":"0","aid":"269724","fid":"99","uid":"1","topic":"1","content":"
\n

\"\"<\/p> \n

\u5fae\u535a Demo \u6027\u80fd\u4f18\u5316\u6280\u5de7<\/h1> \n

\u6211\u4e3a\u4e86\u6f14\u793a YYKit \u7684\u529f\u80fd\uff0c\u5b9e\u73b0\u4e86\u5fae\u535a\u548c Twitter \u7684 Demo\uff0c\u5e76\u4e3a\u5b83\u4eec\u505a\u4e86\u4e0d\u5c11\u6027\u80fd\u4f18\u5316\uff0c\u4e0b\u9762\u5c31\u662f\u4f18\u5316\u65f6\u7528\u5230\u7684\u4e00\u4e9b\u6280\u5de7\u3002<\/p> \n

\u9884\u6392\u7248<\/h2> \n

\u5f53\u83b7\u53d6\u5230 API JSON \u6570\u636e\u540e\uff0c\u6211\u4f1a\u628a\u6bcf\u6761 Cell \u9700\u8981\u7684\u6570\u636e\u90fd\u5728\u540e\u53f0\u7ebf\u7a0b\u8ba1\u7b97\u5e76\u5c01\u88c5\u4e3a\u4e00\u4e2a\u5e03\u5c40\u5bf9\u8c61 CellLayout\u3002CellLayout \u5305\u542b\u6240\u6709\u6587\u672c\u7684 CoreText \u6392\u7248\u7ed3\u679c\u3001Cell \u5185\u90e8\u6bcf\u4e2a\u63a7\u4ef6\u7684\u9ad8\u5ea6\u3001Cell \u7684\u6574\u4f53\u9ad8\u5ea6\u3002\u6bcf\u4e2a CellLayout \u7684\u5185\u5b58\u5360\u7528\u5e76\u4e0d\u591a\uff0c\u6240\u4ee5\u5f53\u751f\u6210\u540e\uff0c\u53ef\u4ee5\u5168\u90e8\u7f13\u5b58\u5230\u5185\u5b58\uff0c\u4ee5\u4f9b\u7a0d\u540e\u4f7f\u7528\u3002\u8fd9\u6837\uff0cTableView \u5728\u8bf7\u6c42\u5404\u4e2a\u9ad8\u5ea6\u51fd\u6570\u65f6\uff0c\u4e0d\u4f1a\u6d88\u8017\u4efb\u4f55\u591a\u4f59\u8ba1\u7b97\u91cf\uff1b\u5f53\u628a CellLayout \u8bbe\u7f6e\u5230 Cell \u5185\u90e8\u65f6\uff0cCell \u5185\u90e8\u4e5f\u4e0d\u7528\u518d\u8ba1\u7b97\u5e03\u5c40\u4e86\u3002<\/p> \n

\u5bf9\u4e8e\u901a\u5e38\u7684 TableView \u6765\u8bf4\uff0c\u63d0\u524d\u5728\u540e\u53f0\u8ba1\u7b97\u597d\u5e03\u5c40\u7ed3\u679c\u662f\u975e\u5e38\u91cd\u8981\u7684\u4e00\u4e2a\u6027\u80fd\u4f18\u5316\u70b9\u3002\u4e3a\u4e86\u8fbe\u5230\u6700\u9ad8\u6027\u80fd\uff0c\u4f60\u53ef\u80fd\u9700\u8981\u727a\u7272\u4e00\u4e9b\u5f00\u53d1\u901f\u5ea6\uff0c\u4e0d\u8981\u7528 Autolayout \u7b49\u6280\u672f\uff0c\u5c11\u7528 UILabel \u7b49\u6587\u672c\u63a7\u4ef6\u3002\u4f46\u5982\u679c\u4f60\u5bf9\u6027\u80fd\u7684\u8981\u6c42\u5e76\u4e0d\u90a3\u4e48\u9ad8\uff0c\u53ef\u4ee5\u5c1d\u8bd5\u7528 TableView \u7684\u9884\u4f30\u9ad8\u5ea6\u7684\u529f\u80fd\uff0c\u5e76\u628a\u6bcf\u4e2a Cell \u9ad8\u5ea6\u7f13\u5b58\u4e0b\u6765\u3002\u8fd9\u91cc\u6709\u4e2a\u6765\u81ea\u767e\u5ea6\u77e5\u9053\u56e2\u961f\u7684\u5f00\u6e90\u9879\u76ee\u53ef\u4ee5\u5f88\u65b9\u4fbf\u7684\u5e2e\u4f60\u5b9e\u73b0\u8fd9\u4e00\u70b9\uff1aFDTemplateLayoutCell\u3002<\/p> \n

\u9884\u6e32\u67d3<\/h2> \n

\u5fae\u535a\u7684\u5934\u50cf\u5728\u67d0\u6b21\u6539\u7248\u4e2d\u6362\u6210\u4e86\u5706\u5f62\uff0c\u6240\u4ee5\u6211\u4e5f\u8ddf\u8fdb\u4e86\u4e00\u4e0b\u3002\u5f53\u5934\u50cf\u4e0b\u8f7d\u4e0b\u6765\u540e\uff0c\u6211\u4f1a\u5728\u540e\u53f0\u7ebf\u7a0b\u5c06\u5934\u50cf\u9884\u5148\u6e32\u67d3\u4e3a\u5706\u5f62\u5e76\u5355\u72ec\u4fdd\u5b58\u5230\u4e00\u4e2a ImageCache \u4e2d\u53bb\u3002<\/p> \n

\u4e00\u4e2a\u5f00\u53d1\u8005\uff0c\u6709\u4e00\u4e2a\u5b66\u4e60\u7684\u6c1b\u56f4\u8ddf\u4e00\u4e2a\u4ea4\u6d41\u5708\u5b50\u7279\u522b\u91cd\u8981\uff0c\u8fd9\u662f\u4e00\u4e2a\u6211\u7684iOS\u4ea4\u6d41\u7fa4\uff1a1012951431<\/strong>\uff0c \u5206\u4eabBAT,\u963f\u91cc\u9762\u8bd5\u9898\u3001\u9762\u8bd5\u7ecf\u9a8c\uff0c\u8ba8\u8bba\u6280\u672f\uff0c \u5927\u5bb6\u4e00\u8d77\u4ea4\u6d41\u5b66\u4e60\u6210\u957f\uff01\u5e0c\u671b\u5e2e\u52a9\u5f00\u53d1\u8005\u5c11\u8d70\u5f2f\u8def\u3002<\/p> \n

\u5bf9\u4e8e TableView \u6765\u8bf4\uff0cCell \u5185\u5bb9\u7684\u79bb\u5c4f\u6e32\u67d3\u4f1a\u5e26\u6765\u8f83\u5927\u7684 GPU \u6d88\u8017\u3002\u5728 Twitter Demo \u4e2d\uff0c\u6211\u4e3a\u4e86\u56fe\u7701\u4e8b\u513f\u7528\u5230\u4e86\u4e0d\u5c11 layer \u7684\u5706\u89d2\u5c5e\u6027\uff0c\u4f60\u53ef\u4ee5\u5728\u4f4e\u6027\u80fd\u7684\u8bbe\u5907\uff08\u6bd4\u5982 iPad 3\uff09\u4e0a\u5feb\u901f\u6ed1\u52a8\u4e00\u4e0b\u8fd9\u4e2a\u5217\u8868\uff0c\u80fd\u611f\u53d7\u5230\u867d\u7136\u5217\u8868\u5e76\u6ca1\u6709\u8f83\u5927\u7684\u5361\u987f\uff0c\u4f46\u662f\u6574\u4f53\u7684\u5e73\u5747\u5e27\u6570\u964d\u4e86\u4e0b\u6765\u3002\u7528 Instument \u67e5\u770b\u65f6\u80fd\u591f\u770b\u5230 GPU \u5df2\u7ecf\u6ee1\u8d1f\u8377\u8fd0\u8f6c\uff0c\u800c CPU \u5374\u6bd4\u8f83\u6e05\u95f2\u3002\u4e3a\u4e86\u907f\u514d\u79bb\u5c4f\u6e32\u67d3\uff0c\u4f60\u5e94\u5f53\u5c3d\u91cf\u907f\u514d\u4f7f\u7528 layer \u7684 border\u3001corner\u3001shadow\u3001mask \u7b49\u6280\u672f\uff0c\u800c\u5c3d\u91cf\u5728\u540e\u53f0\u7ebf\u7a0b\u9884\u5148\u7ed8\u5236\u597d\u5bf9\u5e94\u5185\u5bb9\u3002<\/p> \n

\u5f02\u6b65\u7ed8\u5236<\/h2> \n

\u6211\u53ea\u5728\u663e\u793a\u6587\u672c\u7684\u63a7\u4ef6\u4e0a\u7528\u5230\u4e86\u5f02\u6b65\u7ed8\u5236\u7684\u529f\u80fd\uff0c\u4f46\u6548\u679c\u5f88\u4e0d\u9519\u3002\u6211\u53c2\u8003 ASDK \u7684\u539f\u7406\uff0c\u5b9e\u73b0\u4e86\u4e00\u4e2a\u7b80\u5355\u7684\u5f02\u6b65\u7ed8\u5236\u63a7\u4ef6\u3002\u8fd9\u5757\u4ee3\u7801\u6211\u5355\u72ec\u63d0\u53d6\u51fa\u6765\uff0c\u653e\u5230\u4e86\u8fd9\u91cc\uff1aYYAsyncLayer\u3002YYAsyncLayer \u662f CALayer \u7684\u5b50\u7c7b\uff0c\u5f53\u5b83\u9700\u8981\u663e\u793a\u5185\u5bb9\uff08\u6bd4\u5982\u8c03\u7528\u4e86 [layer setNeedDisplay]\uff09\u65f6\uff0c\u5b83\u4f1a\u5411 delegate\uff0c\u4e5f\u5c31\u662f UIView \u8bf7\u6c42\u4e00\u4e2a\u5f02\u6b65\u7ed8\u5236\u7684\u4efb\u52a1\u3002\u5728\u5f02\u6b65\u7ed8\u5236\u65f6\uff0cLayer \u4f1a\u4f20\u9012\u4e00\u4e2a BOOL(^isCancelled)()\u8fd9\u6837\u7684 block\uff0c\u7ed8\u5236\u4ee3\u7801\u53ef\u4ee5\u968f\u65f6\u8c03\u7528\u8be5 block \u5224\u65ad\u7ed8\u5236\u4efb\u52a1\u662f\u5426\u5df2\u7ecf\u88ab\u53d6\u6d88\u3002<\/p> \n

\u5f53 TableView \u5feb\u901f\u6ed1\u52a8\u65f6\uff0c\u4f1a\u6709\u5927\u91cf\u5f02\u6b65\u7ed8\u5236\u4efb\u52a1\u63d0\u4ea4\u5230\u540e\u53f0\u7ebf\u7a0b\u53bb\u6267\u884c\u3002\u4f46\u662f\u6709\u65f6\u6ed1\u52a8\u901f\u5ea6\u8fc7\u5feb\u65f6\uff0c\u7ed8\u5236\u4efb\u52a1\u8fd8\u6ca1\u6709\u5b8c\u6210\u5c31\u53ef\u80fd\u5df2\u7ecf\u88ab\u53d6\u6d88\u4e86\u3002\u5982\u679c\u8fd9\u65f6\u4ecd\u7136\u7ee7\u7eed\u7ed8\u5236\uff0c\u5c31\u4f1a\u9020\u6210\u5927\u91cf\u7684 CPU \u8d44\u6e90\u6d6a\u8d39\uff0c\u751a\u81f3\u963b\u585e\u7ebf\u7a0b\u5e76\u9020\u6210\u540e\u7eed\u7684\u7ed8\u5236\u4efb\u52a1\u8fdf\u8fdf\u65e0\u6cd5\u5b8c\u6210\u3002\u6211\u7684\u505a\u6cd5\u662f\u5c3d\u91cf\u5feb\u901f\u3001\u63d0\u524d\u5224\u65ad\u5f53\u524d\u7ed8\u5236\u4efb\u52a1\u662f\u5426\u5df2\u7ecf\u88ab\u53d6\u6d88\uff1b\u5728\u7ed8\u5236\u6bcf\u4e00\u884c\u6587\u672c\u524d\uff0c\u6211\u90fd\u4f1a\u8c03\u7528 isCancelled() \u6765\u8fdb\u884c\u5224\u65ad\uff0c\u4fdd\u8bc1\u88ab\u53d6\u6d88\u7684\u4efb\u52a1\u80fd\u53ca\u65f6\u9000\u51fa\uff0c\u4e0d\u81f3\u4e8e\u5f71\u54cd\u540e\u7eed\u64cd\u4f5c\u3002<\/p> \n

\u76ee\u524d\u6709\u4e9b\u7b2c\u4e09\u65b9\u5fae\u535a\u5ba2\u6237\u7aef\uff08\u6bd4\u5982 VVebo\u3001\u58a8\u5ba2\u7b49\uff09\uff0c\u4f7f\u7528\u4e86\u4e00\u79cd\u65b9\u5f0f\u6765\u907f\u514d\u9ad8\u901f\u6ed1\u52a8\u65f6 Cell \u7684\u7ed8\u5236\u8fc7\u7a0b\uff0c\u76f8\u5173\u5b9e\u73b0\u89c1\u8fd9\u4e2a\u9879\u76ee\uff1aVVeboTableViewDemo\u3002\u5b83\u7684\u539f\u7406\u662f\uff0c\u5f53\u6ed1\u52a8\u65f6\uff0c\u677e\u5f00\u624b\u6307\u540e\uff0c\u7acb\u523b\u8ba1\u7b97\u51fa\u6ed1\u52a8\u505c\u6b62\u65f6 Cell \u7684\u4f4d\u7f6e\uff0c\u5e76\u9884\u5148\u7ed8\u5236\u90a3\u4e2a\u4f4d\u7f6e\u9644\u8fd1\u7684\u51e0\u4e2a Cell\uff0c\u800c\u5ffd\u7565\u5f53\u524d\u6ed1\u52a8\u4e2d\u7684 Cell\u3002\u8fd9\u4e2a\u65b9\u6cd5\u6bd4\u8f83\u6709\u6280\u5de7\u6027\uff0c\u5e76\u4e14\u5bf9\u4e8e\u6ed1\u52a8\u6027\u80fd\u6765\u8bf4\u63d0\u5347\u4e5f\u5f88\u5927\uff0c\u552f\u4e00\u7684\u7f3a\u70b9\u5c31\u662f\u5feb\u901f\u6ed1\u52a8\u4e2d\u4f1a\u51fa\u73b0\u5927\u91cf\u7a7a\u767d\u5185\u5bb9\u3002\u5982\u679c\u4f60\u4e0d\u60f3\u5b9e\u73b0\u6bd4\u8f83\u9ebb\u70e6\u7684\u5f02\u6b65\u7ed8\u5236\u4f46\u53c8\u60f3\u4fdd\u8bc1\u6ed1\u52a8\u7684\u6d41\u7545\u6027\uff0c\u8fd9\u4e2a\u6280\u5de7\u662f\u4e2a\u4e0d\u9519\u7684\u9009\u62e9\u3002<\/p> \n

\u5168\u5c40\u5e76\u53d1\u63a7\u5236<\/h2> \n

\u5f53\u6211\u7528 concurrent queue \u6765\u6267\u884c\u5927\u91cf\u7ed8\u5236\u4efb\u52a1\u65f6\uff0c\u5076\u5c14\u4f1a\u9047\u5230\u8fd9\u79cd\u95ee\u9898\uff1a<\/p> \n

\"\"<\/p> \n

\u5927\u91cf\u7684\u4efb\u52a1\u63d0\u4ea4\u5230\u540e\u53f0\u961f\u5217\u65f6\uff0c\u67d0\u4e9b\u4efb\u52a1\u4f1a\u56e0\u4e3a\u67d0\u4e9b\u539f\u56e0\uff08\u6b64\u5904\u662f CGFont \u9501\uff09\u88ab\u9501\u4f4f\u5bfc\u81f4\u7ebf\u7a0b\u4f11\u7720\uff0c\u6216\u8005\u88ab\u963b\u585e\uff0cconcurrent queue \u968f\u540e\u4f1a\u521b\u5efa\u65b0\u7684\u7ebf\u7a0b\u6765\u6267\u884c\u5176\u4ed6\u4efb\u52a1\u3002\u5f53\u8fd9\u79cd\u60c5\u51b5\u53d8\u591a\u65f6\uff0c\u6216\u8005 App \u4e2d\u4f7f\u7528\u4e86\u5927\u91cf concurrent queue \u6765\u6267\u884c\u8f83\u591a\u4efb\u52a1\u65f6\uff0cApp \u5728\u540c\u4e00\u65f6\u523b\u5c31\u4f1a\u5b58\u5728\u51e0\u5341\u4e2a\u7ebf\u7a0b\u540c\u65f6\u8fd0\u884c\u3001\u521b\u5efa\u3001\u9500\u6bc1\u3002CPU \u662f\u7528\u65f6\u95f4\u7247\u8f6e\u8f6c\u6765\u5b9e\u73b0\u7ebf\u7a0b\u5e76\u53d1\u7684\uff0c\u5c3d\u7ba1 concurrent queue \u80fd\u63a7\u5236\u7ebf\u7a0b\u7684\u4f18\u5148\u7ea7\uff0c\u4f46\u5f53\u5927\u91cf\u7ebf\u7a0b\u540c\u65f6\u521b\u5efa\u8fd0\u884c\u9500\u6bc1\u65f6\uff0c\u8fd9\u4e9b\u64cd\u4f5c\u4ecd\u7136\u4f1a\u6324\u5360\u6389\u4e3b\u7ebf\u7a0b\u7684 CPU \u8d44\u6e90\u3002ASDK \u6709\u4e2a Feed \u5217\u8868\u7684 Demo\uff1aSocialAppLayout\uff0c\u5f53\u5217\u8868\u5185 Cell \u8fc7\u591a\uff0c\u5e76\u4e14\u975e\u5e38\u5feb\u901f\u7684\u6ed1\u52a8\u65f6\uff0c\u754c\u9762\u4ecd\u7136\u4f1a\u51fa\u73b0\u5c11\u91cf\u5361\u987f\uff0c\u6211\u8c28\u614e\u7684\u731c\u6d4b\u53ef\u80fd\u4e0e\u8fd9\u4e2a\u95ee\u9898\u6709\u5173\u3002<\/p> \n

\u4f7f\u7528 concurrent queue \u65f6\u4e0d\u53ef\u907f\u514d\u4f1a\u9047\u5230\u8fd9\u79cd\u95ee\u9898\uff0c\u4f46\u4f7f\u7528 serial queue \u53c8\u4e0d\u80fd\u5145\u5206\u5229\u7528\u591a\u6838 CPU \u7684\u8d44\u6e90\u3002\u6211\u5199\u4e86\u4e00\u4e2a\u7b80\u5355\u7684\u5de5\u5177 YYDispatchQueuePool\uff0c\u4e3a\u4e0d\u540c\u4f18\u5148\u7ea7\u521b\u5efa\u548c CPU \u6570\u91cf\u76f8\u540c\u7684 serial queue\uff0c\u6bcf\u6b21\u4ece pool \u4e2d\u83b7\u53d6 queue \u65f6\uff0c\u4f1a\u8f6e\u8be2\u8fd4\u56de\u5176\u4e2d\u4e00\u4e2a queue\u3002\u6211\u628a App \u5185\u6240\u6709\u5f02\u6b65\u64cd\u4f5c\uff0c\u5305\u62ec\u56fe\u50cf\u89e3\u7801\u3001\u5bf9\u8c61\u91ca\u653e\u3001\u5f02\u6b65\u7ed8\u5236\u7b49\uff0c\u90fd\u6309\u4f18\u5148\u7ea7\u4e0d\u540c\u653e\u5165\u4e86\u5168\u5c40\u7684 serial queue \u4e2d\u6267\u884c\uff0c\u8fd9\u6837\u5c3d\u91cf\u907f\u514d\u4e86\u8fc7\u591a\u7ebf\u7a0b\u5bfc\u81f4\u7684\u6027\u80fd\u95ee\u9898\u3002<\/p> \n

\u66f4\u9ad8\u6548\u7684\u5f02\u6b65\u56fe\u7247\u52a0\u8f7d<\/h2> \n

SDWebImage \u5728\u8fd9\u4e2a Demo \u91cc\u4ecd\u7136\u4f1a\u4ea7\u751f\u5c11\u91cf\u6027\u80fd\u95ee\u9898\uff0c\u5e76\u4e14\u6709\u4e9b\u5730\u65b9\u4e0d\u80fd\u6ee1\u8db3\u6211\u7684\u9700\u6c42\uff0c\u6240\u4ee5\u6211\u81ea\u5df1\u5b9e\u73b0\u4e86\u4e00\u4e2a\u6027\u80fd\u66f4\u9ad8\u7684\u56fe\u7247\u52a0\u8f7d\u5e93\u3002\u5728\u663e\u793a\u7b80\u5355\u7684\u5355\u5f20\u56fe\u7247\u65f6\uff0c\u5229\u7528 UIView.layer.contents \u5c31\u8db3\u591f\u4e86\uff0c\u6ca1\u5fc5\u8981\u4f7f\u7528 UIImageView \u5e26\u6765\u989d\u5916\u7684\u8d44\u6e90\u6d88\u8017\uff0c\u4e3a\u6b64\u6211\u5728 CALayer \u4e0a\u6dfb\u52a0\u4e86 setImageWithURL \u7b49\u65b9\u6cd5\u3002\u9664\u6b64\u4e4b\u5916\uff0c\u6211\u8fd8\u628a\u56fe\u7247\u89e3\u7801\u7b49\u64cd\u4f5c\u901a\u8fc7 YYDispatchQueuePool \u8fdb\u884c\u7ba1\u7406\uff0c\u63a7\u5236\u4e86 App \u603b\u7ebf\u7a0b\u6570\u91cf\u3002<\/p> \n

\u5176\u4ed6\u53ef\u4ee5\u6539\u8fdb\u7684\u5730\u65b9<\/h2> \n

\u4e0a\u9762\u8fd9\u4e9b\u4f18\u5316\u505a\u5b8c\u540e\uff0c\u5fae\u535a Demo \u5df2\u7ecf\u975e\u5e38\u6d41\u7545\u4e86\uff0c\u4f46\u5728\u6211\u7684\u8bbe\u60f3\u4e2d\uff0c\u4ecd\u7136\u6709\u4e00\u4e9b\u8fdb\u4e00\u6b65\u4f18\u5316\u7684\u6280\u5de7\uff0c\u4f46\u9650\u4e8e\u65f6\u95f4\u548c\u7cbe\u529b\u6211\u5e76\u6ca1\u6709\u5b9e\u73b0\uff0c\u4e0b\u9762\u7b80\u5355\u5217\u4e00\u4e0b\uff1a<\/p> \n

\u5217\u8868\u4e2d\u6709\u4e0d\u5c11\u89c6\u89c9\u5143\u7d20\u5e76\u4e0d\u9700\u8981\u89e6\u6478\u4e8b\u4ef6\uff0c\u8fd9\u4e9b\u5143\u7d20\u53ef\u4ee5\u7528 ASDK \u7684\u56fe\u5c42\u5408\u6210\u6280\u672f\u9884\u5148\u7ed8\u5236\u4e3a\u4e00\u5f20\u56fe\u3002<\/p> \n

\u518d\u8fdb\u4e00\u6b65\u51cf\u5c11\u6bcf\u4e2a Cell \u5185\u56fe\u5c42\u7684\u6570\u91cf\uff0c\u7528 CALayer \u66ff\u6362\u6389 UIView\u3002<\/p> \n

\u76ee\u524d\u6bcf\u4e2a Cell \u7684\u7c7b\u578b\u90fd\u662f\u76f8\u540c\u7684\uff0c\u4f46\u663e\u793a\u7684\u5185\u5bb9\u5374\u5404\u90e8\u4e00\u6837\uff0c\u6bd4\u5982\u6709\u7684 Cell \u6709\u56fe\u7247\uff0c\u6709\u7684 Cell \u91cc\u662f\u5361\u7247\u3002\u628a Cell \u6309\u7c7b\u578b\u5212\u5206\uff0c\u8fdb\u4e00\u6b65\u51cf\u5c11 Cell \u5185\u4e0d\u5fc5\u8981\u7684\u89c6\u56fe\u5bf9\u8c61\u548c\u64cd\u4f5c\uff0c\u5e94\u8be5\u80fd\u6709\u4e00\u4e9b\u6548\u679c\u3002<\/p> \n

\u628a\u9700\u8981\u653e\u5230\u4e3b\u7ebf\u7a0b\u6267\u884c\u7684\u4efb\u52a1\u5212\u5206\u4e3a\u8db3\u591f\u5c0f\u7684\u5757\uff0c\u5e76\u901a\u8fc7 Runloop \u6765\u8fdb\u884c\u8c03\u5ea6\uff0c\u5728\u6bcf\u4e2a Loop \u91cc\u5224\u65ad\u4e0b\u4e00\u6b21 VSync \u7684\u65f6\u95f4\uff0c\u5e76\u5728\u4e0b\u6b21 VSync \u5230\u6765\u524d\uff0c\u628a\u5f53\u524d\u672a\u6267\u884c\u5b8c\u7684\u4efb\u52a1\u5ef6\u8fdf\u5230\u4e0b\u4e00\u4e2a\u673a\u4f1a\u53bb\u3002\u8fd9\u4e2a\u53ea\u662f\u6211\u7684\u4e00\u4e2a\u8bbe\u60f3\uff0c\u5e76\u4e0d\u4e00\u5b9a\u80fd\u5b9e\u73b0\u6216\u8d77\u4f5c\u7528\u3002<\/p> \n

\u5982\u4f55\u8bc4\u6d4b\u754c\u9762\u7684\u6d41\u7545\u5ea6<\/h1> \n

\u6700\u540e\u8fd8\u662f\u8981\u63d0\u4e00\u4e0b\uff0c\u201c\u8fc7\u65e9\u7684\u4f18\u5316\u662f\u4e07\u6076\u4e4b\u6e90\u201d\uff0c\u5728\u9700\u6c42\u672a\u5b9a\uff0c\u6027\u80fd\u95ee\u9898\u4e0d\u660e\u663e\u65f6\uff0c\u6ca1\u5fc5\u8981\u5c1d\u8bd5\u505a\u4f18\u5316\uff0c\u800c\u8981\u5c3d\u91cf\u6b63\u786e\u7684\u5b9e\u73b0\u529f\u80fd\u3002\u505a\u6027\u80fd\u4f18\u5316\u65f6\uff0c\u4e5f\u6700\u597d\u662f\u8d70\u4fee\u6539\u4ee3\u7801 -> Profile -> \u4fee\u6539\u4ee3\u7801\u8fd9\u6837\u4e00\u4e2a\u6d41\u7a0b\uff0c\u4f18\u5148\u89e3\u51b3\u6700\u503c\u5f97\u4f18\u5316\u7684\u5730\u65b9\u3002<\/p> \n

\u5982\u679c\u4f60\u9700\u8981\u4e00\u4e2a\u660e\u786e\u7684 FPS \u6307\u793a\u5668\uff0c\u53ef\u4ee5","orderid":"0","title":"iOS\u754c\u9762\u6d41\u7545\u6280\u5de7\u4e4b\u5fae\u535a Demo \u6027\u80fd\u4f18\u5316\u6280\u5de7(\u4e00)","smalltitle":"","mid":"0","fname":"iOS","special_id":"0","bak_id":"0","info":"0","hits":"27","pages":"2","comments":"0","posttime":"2019-11-20 18:11:23","list":"1574244683","username":"admin","author":"","copyfrom":"","copyfromurl":"","titlecolor":"","fonttype":"0","titleicon":"0","picurl":"https:\/\/www.cppentry.com\/upload_files\/","ispic":"0","yz":"1","yzer":"","yztime":"0","levels":"0","levelstime":"0","keywords":"iOS<\/A> \u754c\u9762<\/A> \u6d41\u7545<\/A> \u6280\u5de7<\/A> Demo<\/A> \u6027\u80fd<\/A> \u4f18\u5316<\/A>","jumpurl":"","iframeurl":"","style":"","template":"a:3:{s:4:\"head\";s:0:\"\";s:4:\"foot\";s:0:\"\";s:8:\"bencandy\";s:0:\"\";}","target":"0","ip":"14.17.22.33","lastfid":"0","money":"0","buyuser":"","passwd":"","allowdown":"","allowview":"","editer":"","edittime":"0","begintime":"0","endtime":"0","description":"iOS\u754c\u9762\u6d41\u7545\u6280\u5de7\u4e4b\u5fae\u535a Demo \u6027\u80fd\u4f18\u5316\u6280\u5de7","lastview":"1576027282","digg_num":"0","digg_time":"0","forbidcomment":"0","ifvote":"0","heart":"","htmlname":"","city_id":"0"},"page":"1"}