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 08-06-2010, 03:58 PM   #1 (permalink)
Registered Member
 
Join Date: Sep 2008
Posts: 169
Danneman is on a distinguished road
Default Auto-rotating intro-screen not working [ipad]

Ive got an intro-view that appears right after the splash-screen, and that is loaded from the didFinishLaunchingWithOptions in the AppDelegate.m-file.

Problem is it wont rotate when the device rotates. This despite the fact that the splash-screen rotates fine to the selected orientation, and that the info-file supports all 4 rotations.

Code:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {    
	[window addSubview:splitViewController.view];
	[window makeKeyAndVisible];

	// Create intro-screen, with some nick-nacks not included here
	CGSize screenSize = [UIScreen mainScreen].bounds.size;
	CGRect screenBounds = CGRectMake(0, 0, screenSize.width, screenSize.height);	
	introView = [[UIView alloc] initWithFrame:screenBounds];	
	[window addSubview:introView];

	return YES;	
}
Any idea as to what might be causing it?
Danneman is offline   Reply With Quote
Old 08-06-2010, 08:10 PM   #2 (permalink)
Emphasizing Fundamentals
 
BrianSlick's Avatar
 
Join Date: Jul 2009
Location: NoVA / DC Area
Age: 36
Posts: 7,990
BrianSlick has a spectacular aura about
Default

It sounds similar to what I found previously. These may help:

http://www.iphonedevsdk.com/forum/ip...ientation.html

http://www.iphonedevsdk.com/forum/ip...ch-issues.html
__________________
BriTer Ideas LLC - Professional iOS App Development. Available for hire.

SlickShopper 2 | Free NSLog utility | Leave a PayPal donation.

Are you a newbie? Things you should read:
Definitive Guide To Properties | UITableView Series | Guide To Troubleshooting | Model Object Overview

Do you sit at a desk all day? Walk instead! Follow along with my treadmill desk adventures.
BrianSlick is offline   Reply With Quote
Old 08-08-2010, 06:12 AM   #3 (permalink)
Registered Member
 
Join Date: Sep 2008
Posts: 169
Danneman is on a distinguished road
Default

I see - only a viewcontroller can handle auto-rotation of views, whereas auto-rotating the default.png is a totally separate issue.

I tried adding the introview to the splitviewcontroller instead of the window, and the auto-rotation started working. Problem is the resizing of the introview - trying to get the current screensize from the splitviewcontroller.view (see below) only returns the size in portrait-mode. Since Im getting my iPad in a couple of days I cant check if this only happens on the simulator and not on the actual device :/

Code:
CGSize screenSize = splitViewController.view.bounds.size; // ipad - only returning portrait-size

Last edited by Danneman; 08-08-2010 at 06:31 AM.
Danneman 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: 307
11 members and 296 guests
alexP, arash5500, gordo26, HemiMG, linkmx, mediaspree, nobstudio, Objective Zero, Sloshmonster, stanny, Touchmint
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,655
Threads: 94,116
Posts: 402,889
Top Poster: BrianSlick (7,990)
Welcome to our newest member, pungs
Powered by vBadvanced CMPS v3.1.0

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