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

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

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

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 07-04-2010, 09:51 AM   #1 (permalink)
Registered Member
 
Join Date: Jul 2010
Posts: 7
kai824 is on a distinguished road
Default Rotating Web View

Hey,

I'm making an app that shows a web page and some other stuff.
I want to make it possible that the user can turn his phone and view the app in landscape. The app is in Landscape now, but I don't know how to let the webview rotate too.

Short: The app rotates but the Web View(s) doesn't /aren't


Martijn
kai824 is offline   Reply With Quote
Old 07-05-2010, 10:35 AM   #2 (permalink)
Registered Member
 
Join Date: Jul 2010
Posts: 7
kai824 is on a distinguished road
Default

Anyone?
kai824 is offline   Reply With Quote
Old 07-05-2010, 10:53 AM   #3 (permalink)
Registered Member
 
Join Date: Nov 2009
Posts: 580
ChrisL is on a distinguished road
Default

How are you setting things up so that your app rotates to landscape but the web view does not?

You should use a UIViewController and let it manage the orientation changes for you. There's an entire section devoted to this in the View Controller Programming Guide.
ChrisL is offline   Reply With Quote
Old 07-08-2010, 06:42 AM   #4 (permalink)
Registered Member
 
Join Date: Jul 2010
Posts: 7
kai824 is on a distinguished road
Default

I used this in every View Controller:

Quote:
-(BOOL)shouldAutorotateToInterfaceOrientation:.(UII nterfaceOrientation)interfaceOrientation
{
return YES;

}


Remove the . between : and (

Last edited by kai824; 07-08-2010 at 06:45 AM.
kai824 is offline   Reply With Quote
Old 07-08-2010, 07:31 AM   #5 (permalink)
Registered Member
 
Join Date: Jul 2010
Posts: 7
kai824 is on a distinguished road
Default

Okay, followed Apple's instructions.
the webviews in my TableViewController are rotating (table1.xib and table2.xib) but the webview in my FirstView isn't... This is strange. I can provide the source code if needed, it isn't a that commercial app.
kai824 is offline   Reply With Quote
Old 07-08-2010, 11:52 AM   #6 (permalink)
Registered Member
 
Join Date: Jul 2010
Posts: 7
kai824 is on a distinguished road
Default

Okay, it's fixed. I don't know what the problem was, but I copied the view from table1.xib to firstview.xib.

Last edited by kai824; 07-08-2010 at 11:59 AM.
kai824 is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 327
6 members and 321 guests
anothermine, Chickenrig, givensur, michaelhansen, PixelInteractive, stanny
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,657
Threads: 94,118
Posts: 402,892
Top Poster: BrianSlick (7,990)
Welcome to our newest member, jenniead38
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 12:27 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0