{"blog_title":"\u65e5\u3005\u7cbe\u9032","version":"1.0","author_name":"anton0825","image_url":null,"author_url":"https://blog.hatena.ne.jp/anton0825/","provider_url":"https://hatena.blog","url":"https://anton0825.hatenablog.com/entry/20120812/1345629089","type":"rich","description":"\u30fbBlock\u306f\u5faa\u74b0\u53c2\u7167\u306b\u306a\u308a\u3084\u3059\u3044\u306e\u3067\u6ce8\u610f\u3002Block\u5185\u304b\u3089self\u3092\u53c2\u7167\u3059\u308b\u5834\u5408\u306f__weak\u3092\u4f7f\u3046\u3053\u3068\u3002 \u4f8b\u306f\u4ee5\u4e0b\u3002 - (void)method{ id __weak weakSelf = self; blk_t blk = ^int (int count){ NSLog(@\"%p\", weakSelf); return 0; }; } \u30fb\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u306fBlock\u5185\u3067self\u3092\u53c2\u7167\u3057\u3066\u3044\u306a\u3044\u306e\u306b\u5faa\u74b0\u53c2\u7167\u306b\u306a\u308b\uff01\uff01 typedef int (^blk_t)(int); @implementation MyClass { id obj; } - (void)method{ blk_t blk\u2026","categories":["IT","iOS"],"published":"2012-08-12 18:51:29","height":"190","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fanton0825.hatenablog.com%2Fentry%2F20120812%2F1345629089\" title=\"\u30a8\u30ad\u30b9\u30d1\u30fc\u30c8Objective\u30fcC\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3000\uff12 - \u65e5\u3005\u7cbe\u9032\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":"\u30a8\u30ad\u30b9\u30d1\u30fc\u30c8Objective\u30fcC\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3000\uff12","blog_url":"https://anton0825.hatenablog.com/","width":"100%"}