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 09-08-2010, 10:36 AM   #9 (permalink)
tuyennguyencanada
Registered Member
 
Join Date: Aug 2010
Posts: 8
tuyennguyencanada is on a distinguished road
Default

Quote:
Originally Posted by intomo View Post
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.
Use self.selectedIndex works for me. I only allow rotating view at index 3 in my app.

Thanks,
tuyennguyencanada is offline   Reply With Quote
 

» Advertisements
» Online Users: 391
18 members and 373 guests
alexdesuja, Chickenrig, erdinc27, EvilElf, firecall, hacker073, ipodphone, iram91418, joelle883600, larhondaxzcw, LEARN2MAKE, linkmx, Mnadeep, nanijoe, pbart, PlutoPrime, raymng, santicarlo
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,585
Threads: 94,082
Posts: 402,772
Top Poster: BrianSlick (7,990)
Welcome to our newest member, alexdesuja
Powered by vBadvanced CMPS v3.1.0

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