{"id":5147,"date":"2014-03-30T19:13:22","date_gmt":"2014-03-30T19:13:22","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/any-way-to-trigger-interface-orientation-check-collection-of-common-programming-errors\/"},"modified":"2014-03-30T19:13:22","modified_gmt":"2014-03-30T19:13:22","slug":"any-way-to-trigger-interface-orientation-check-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/any-way-to-trigger-interface-orientation-check-collection-of-common-programming-errors\/","title":{"rendered":"Any way to trigger interface orientation check?-Collection of common programming errors"},"content":{"rendered":"<p>Unfortunately, there are no ways for that in current iPhone OS.<\/p>\n<p>The main reason is that the result of shouldAutorotateToInterfaceOrientation: is cached, so you must not change its result runtime. So if you flip to another view in the same view controller, it won&#8217;t change orientation no matter what you do (or it will, but will work improperly later).<\/p>\n<p>I suggest using a modal view controller instead. You won&#8217;t be able to show a flipping animation then (or not easily), but the orientation changes should work fine.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Unfortunately, there are no ways for that in current iPhone OS. The main reason is that the result of shouldAutorotateToInterfaceOrientation: is cached, so you must not change its result runtime. So if you flip to another view in the same view controller, it won&#8217;t change orientation no matter what you do (or it will, but [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5147","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5147","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=5147"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5147\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=5147"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=5147"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=5147"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}