Discussion Forums  >  Suggestions, Ideas, Wish List

Replies: 3    Views: 117

MGoBlue
Apple Fan
Profile
Posts: 980
Reg: Jun 07, 2011
Gold River, CA
10,600
07/01/12 06:52 PM (13 years ago)

Fix for the quiz rotation issue (BT 2.0 quiz plugin for iOS)

If you launch the quiz while rotated, a message appears telling the user to rotate the device, however when the device is rotated back, the message remains. To fix this and launch the quiz screen do the following: In BT_rotatingTabBarController.m file: Add the following at the top of the file: #import "BT_screen_quiz.h" Then, in the //did rotate section, add the following: //quiz screen need to show a message... if([theViewController isKindOfClass:[BT_screen_quiz class]] == YES){ BT_screen_quiz *theScreenToReload; if([appDelegate.rootApp.tabs count] > 0){ theScreenToReload = (BT_screen_quiz*) [[appDelegate.rootApp.rootTabBarController.viewControllers objectAtIndex:selectedTab] visibleViewController]; }else{ theScreenToReload = (BT_screen_quiz*) [appDelegate.rootApp.rootNavController visibleViewController]; } [theScreenToReload layoutScreen]; }
 
shenry
Aspiring developer
Profile
Posts: 469
Reg: Jan 10, 2012
Orange County, ...
13,390
like
07/01/12 07:31 PM (13 years ago)
I get "Unidentifier" or "(" for this line: if([theViewController isKindOfClass:[BT_screen_quiz class]] == YES){ and a total of 10, red !s, I put this code directly under //did rotate
 
MGoBlue
Apple Fan
Profile
Posts: 980
Reg: Jun 07, 2011
Gold River, CA
10,600
like
07/01/12 07:44 PM (13 years ago)
I put it directly under the "//some screens need to re-build their layout..." section and it works.
 
shenry
Aspiring developer
Profile
Posts: 469
Reg: Jan 10, 2012
Orange County, ...
13,390
like
07/02/12 09:07 PM (13 years ago)
Thanks for the clarification. No red !s. BTW, your tutorial on how to add files to Xcode was very helpful.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.