Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
iOS Development
How Do I Enable UpsideDownPortrait?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="xstep" data-source="post: 1315892" data-attributes="member: 11647"><p>First, when posting code, wrap it with the CODE tag. It will eliminate that sad face I'm seeing.</p><p></p><p>Second, <a href="http://developer.apple.com/library/ios/#DOCUMENTATION/UIKit/Reference/UIViewController_Class/Reference/Reference.html" target="_blank">read the documentation</a>. What does it say about the value, interfaceOrientation, being passed into the method? What does it say about the value you are returning?</p><p></p><p>Third, for your return statement, do you think the NOT equation makes sense given that is the orientation you want to say YES to?</p><p></p><p>Forth, to support some other orientations, you'll have to combine the extra evaluations with ORs.</p></blockquote><p></p>
[QUOTE="xstep, post: 1315892, member: 11647"] First, when posting code, wrap it with the CODE tag. It will eliminate that sad face I'm seeing. Second, [URL="http://developer.apple.com/library/ios/#DOCUMENTATION/UIKit/Reference/UIViewController_Class/Reference/Reference.html"]read the documentation[/URL]. What does it say about the value, interfaceOrientation, being passed into the method? What does it say about the value you are returning? Third, for your return statement, do you think the NOT equation makes sense given that is the orientation you want to say YES to? Forth, to support some other orientations, you'll have to combine the extra evaluations with ORs. [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
iOS Development
How Do I Enable UpsideDownPortrait?
Top