Closed gabreho closed 10 years ago
Line 90 crashes; responder does respond to setPreferredFramesPerSecond, but the method is being called on self.window.rootViewController, which may not be the responder:
if([responder respondsToSelector:@selector(setPreferredFramesPerSecond:)]) [(GLKViewController*)[self.window rootViewController] setPreferredFramesPerSecond:FPS];
indeed! thank you does this prevent a crash on your machine: [(GLKViewController*)responder setPreferredFramesPerSecond:FPS];
yes, I made it work exactly like that :). Thanks!
great thank you!
Line 90 crashes; responder does respond to setPreferredFramesPerSecond, but the method is being called on self.window.rootViewController, which may not be the responder:
if([responder respondsToSelector:@selector(setPreferredFramesPerSecond:)]) [(GLKViewController*)[self.window rootViewController] setPreferredFramesPerSecond:FPS];