Sub-classing UINavigation Controller on iOS6

If you’ve ever needed to rotate just one view controller on iOS6 but struggled to get control of the situation this gist may help:

https://gist.github.com/lessthanyouthink/3842178

Simply add that class to your Navigation Controller in Storyboard.

Then simply add this method to the view controller you don’t want to rotate:

-(BOOL)shouldAutorotate {
return NO;
}

As you can see. I need to find a source code plug in for WordPress!