Safariと同じようにするには、以下のように実装します。
[sourcecode language=”cpp”]
– (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return (interfaceOrientation == UIInterfaceOrientationPortrait);
}
[/sourcecode]
こっちはNG。EvernoteやSimpleMind Xpressなど、この実装をしているアプリがたくさんありますが、iPhoneを逆さまにして見るというニーズはないと思います。
[sourcecode language=”cpp”]
– (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return YES;
}
[/sourcecode]