{"id":2036,"date":"2013-10-17T23:40:25","date_gmt":"2013-10-17T14:40:25","guid":{"rendered":"http:\/\/www.whoocus.com\/blog\/?p=2036"},"modified":"2013-10-17T23:41:09","modified_gmt":"2013-10-17T14:41:09","slug":"cocos2d-x-%e7%b8%a6%e7%94%bb%e9%9d%a2%e3%81%ae%e8%a8%ad%e5%ae%9a","status":"publish","type":"post","link":"https:\/\/www.blowfish.co.jp\/?p=2036","title":{"rendered":"Cocos2d-x \u7e26\u753b\u9762\u306e\u8a2d\u5b9a"},"content":{"rendered":"<p><strong>RootViewController.mm<\/strong><br \/>\n[c]<br \/>\n\/\/ Override to allow orientations other than the default portrait orientation.<br \/>\n\/\/ This method is deprecated on ios6<br \/>\n&#8211; (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {<br \/>\n    \/\/\u7e26\u753b\u9762\u5bfe\u5fdc<br \/>\n    return UIInterfaceOrientationIsPortrait(interfaceOrientation);<br \/>\n    \/\/return UIInterfaceOrientationIsLandscape( interfaceOrientation );<br \/>\n}<\/p>\n<p>\/\/ For ios6, use supportedInterfaceOrientations &amp; shouldAutorotate instead<br \/>\n&#8211; (NSUInteger) supportedInterfaceOrientations{<br \/>\n#ifdef __IPHONE_6_0<br \/>\n    \/\/\u7e26\u753b\u9762\u5bfe\u5fdc<br \/>\n    return UIInterfaceOrientationMaskPortrait;<br \/>\n    \/\/return UIInterfaceOrientationMaskAllButUpsideDown;<br \/>\n#endif<br \/>\n}<\/p>\n<p>&#8211; (BOOL) shouldAutorotate {<br \/>\n    return NO;<br \/>\n}<\/p>\n<p>[\/c]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>RootViewController.mm [c] \/\/ Override to allow orientations other than the default portrait orientation. \/\/ Th [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"saved_in_kubio":false,"footnotes":""},"categories":[42,43,4],"tags":[],"class_list":["post-2036","post","type-post","status-publish","format-standard","hentry","category-c","category-cocos2d-x","category-tech"],"_links":{"self":[{"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/2036","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2036"}],"version-history":[{"count":3,"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/2036\/revisions"}],"predecessor-version":[{"id":2039,"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=\/wp\/v2\/posts\/2036\/revisions\/2039"}],"wp:attachment":[{"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2036"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2036"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.blowfish.co.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2036"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}