Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 09-04-2008, 01:51 PM   #7 (permalink)
cope784
New Member
 
Join Date: Jun 2008
Posts: 22
Default

Quote:
Originally Posted by Jume View Post
I think you should apply transformation to every UI element that you want to render in landscape...

But I don't quite get it. If you have a navigation bar that means that you have a navigation controller as well? Why don't you use the autorotate functionality that view controllers serve to you? It's much easier and the whole interface is rotatet for you. Just need to return YES shouldRotateToInterfaceOrientation ...

Cheers
That is true. We are using a navigation controller and have tried to use the shouldAutorotateToInterfaceOrientation function. Here is the code we are using for that function.

Code:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
	return (interfaceOrientation == UIInterfaceOrientationLandscapeRight);
}
As far as I understand it, that should allow the phone to autorotate to Landscape Right when rotated on its side. The only problem is that the view first loads in portrait and we want it load and be viewed only in landscape right. We are basically trying to show tableview in landscape mode because the information that will be displayed is easier to read in landscape than in portrait.

Sorry for the confusion but hopefully this will help explain what we are trying to do.

Again, thanks for your time trying to help me.

Last edited by cope784; 09-30-2008 at 12:08 PM.
cope784 is offline   Reply With Quote
 

» Advertisements
» Online Users: 684
23 members and 661 guests
annchavez78, armmzz, at0m87, biskwit, CityBrains, Clouds, dfvdan, Domele, ilmman, iVenh, katearmine, maghett004, mayaz7_ayaz, Meoz, MozyMac, MSJJ, nidie, nik's, qkstrk, rocel1234, sacha1996, saqibjaan
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,819
Threads: 89,206
Posts: 380,632
Top Poster: BrianSlick (7,129)
Welcome to our newest member, rocel1234
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:13 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.