-(void)setOrientation:(UIDeviceOrientation)orientation{
_orientation = orientation;
[[UIDevice currentDevice] setValue:[NSNumber numberWithInteger:orientation] forKey:@"orientation"];
}
各方面的设置都没有问题,最后发现是该视图是通过self presentViewController展示的
最后改为通过pushViewController 就ok了