mayakraft / Panorama

Spherical panorama view, iOS
MIT License
649 stars 135 forks source link

Unrecognised selector - line 90 #17

Closed gabreho closed 10 years ago

gabreho commented 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];

mayakraft commented 10 years ago

indeed! thank you does this prevent a crash on your machine: [(GLKViewController*)responder setPreferredFramesPerSecond:FPS];

gabreho commented 10 years ago

yes, I made it work exactly like that :). Thanks!

mayakraft commented 10 years ago

great thank you!