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

View Single Post
Old 03-29-2010, 10:57 AM   #7 (permalink)
intomo
Registered Member
 
Join Date: Jul 2009
Posts: 62
intomo is on a distinguished road
Default

Code:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
    // Return YES for supported orientations
	if([(UINavigationController *)self.selectedViewController isKindOfClass:[UINavigationController class]])
		if([[(UINavigationController *)self.selectedViewController visibleViewController] isKindOfClass:[MediaDetailViewController class]])
			return (interfaceOrientation == UIInterfaceOrientationPortrait ||interfaceOrientation == UIInterfaceOrientationLandscapeLeft || interfaceOrientation == UIInterfaceOrientationLandscapeRight);
	return (interfaceOrientation == UIInterfaceOrientationPortrait);
}
I still get one error saying that MediaDetailViewController is a forward class and may not respond to @interface...

Am I still doing something wrong?
Thanks for the thread.
intomo is offline   Reply With Quote
 

» Advertisements
» Online Users: 329
13 members and 316 guests
.Snipe, brainspoon, Domele, Gary OBrien, greeneye82, jbro, JMLdev, matador1978, mobilaga, m_rozzi, Newbie123, Objective Zero
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,553
Threads: 94,078
Posts: 402,735
Top Poster: BrianSlick (7,990)
Welcome to our newest member, zulemamn37
Powered by vBadvanced CMPS v3.1.0

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