,ios6中shouldAutorotateToInterfaceOrientation方法确实不在调用了,可是我使用了文档中推荐的shouldAutorotate方法依然没有被调用,didRotateFromInterfaceOrientation方法更没有被调用,plist里4个方向我都添加了,代码贴出来吧
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#if 0
- (
BOOL
)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return
YES
;
}
#endif
#if 1
- (
BOOL
)shouldAutorotate
{
return
YES
;
}
- (
NSUInteger
)supportedInterfaceOrientations
{
return
UIInterfaceOrientationMaskAllButUpsideDown;
}
#endif
|