|
|
#1 |
|
How do you support landscape mode?
I'm almost done my first app, but I want to be able to know how to support landscape mode.
(The app displays an RSS feed) |
|
|
|
0
|
|
|
#2 |
|
You need to implement shouldAutorotateToInterfaceOrientation:
|
|
|
|
0
|
|
|
#3 |
|
Im a total noob to this stuff, where would you add that
__________________
|
|
|
|
0
|
|
|
#4 |
|
yeh
yeah I second that. All I need to know now is where to add it.
|
|
|
|
0
|
|
|
#5 |
|
i
and I guess I third it.
Thanks everyone youre all a huge help!
|
|
|
|
0
|
|
|
#6 |
|
Have you tried using the documentation. It's not there for you to ignore whilst you post questions on here.
I put "shouldAutorotateToInterfaceOrientation" into the search box and the top page returned was titled "Autorotating views". Have you tried, you know, reading it?
__________________
Sponsor me to cycle 100Km round London in the dark |
|
|
|
0
|
|
|
#7 |
|
I read the entire guide. It makes next to no sense. I understand that I have to add the code:
@property(nonatomic, readonly) UIInterfaceOrientation interfaceOrientation BUT - I have no idea where I put it in. It says that it needs to be declared in a place that I can't even find! |
|
|
|
0
|
|
|
#8 |
|
The method is in your main ViewController. The code for the method is actually already generated for you when you generate a new project with view.
Replace: - (BOOL)shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation)interfaceOrientation { return (interfaceOrientation == UIInterfaceOrientationPortrait); } with: - (BOOL)shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation)interfaceOrientation { return YES; } For more info: http://developer.apple.com/iphone/li...section_1.html |
|
|
|
0
|
|
|
#9 | |
|
Quote:
I'm not even attempting to write an iPhone application until I feel like I have a good strong grasp of Objective-C and the Cocoa APIs and I have the advantage of knowing C already.
__________________
Neural Advance - Mac OS X, UNIX and Windows Development Last.fm Profile | Extreme Metal Reviews MP 4x 2.66Ghz Xeons / 6GB RAM / 640GB + 500GB + 750GB + 1TB HDDs / ATI Radeon 4870 / iPad 3 |
||
|
|
-1
|
|
|
#10 | |
|
Quote:
.
|
||
|
|
0
|
![]() |
|
«
Previous Thread
|
Next Thread
»
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| thread | Thread Starter | Forum | Replies | Last Post |
| How do you check to see if you're in 64-bit mode? | Boesky | Mac OS X | 11 | Nov 5, 2009 04:43 PM |
| How do you use Stealth Mode in Colloquy? | siys | Mac Applications and Mac App Store | 0 | Sep 27, 2008 05:52 PM |
| How do you get out of restore mode? | aerospace | iPhone Tips, Help and Troubleshooting | 0 | Mar 23, 2008 08:19 AM |
| How do you get full screen mode on Firefox with a mac? | streetsmart1980 | Mac Basics and Help | 5 | Jan 18, 2008 05:04 PM |
| How do you enable Clamshell mode? | Chef Medeski | Macintosh Computers | 6 | Aug 7, 2005 12:11 PM |
All times are GMT -5. The time now is 06:23 AM.










.
Linear Mode

