Title / Description
Code // In your ViewController.m subclass that you wish to just obey the specified supported orientations, // #import "UIApplicationAddition.h" - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { return UIInterfaceOrientationIsSupportedOrientation(interfaceOrientation); }
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code