0
我有一个视图内的tabbarcontroller和navigationcontroller和我的'willAnimateRotationToInterfaceOrientation'方法不会触发。willAnimateRotationToInterfaceOrientation not firing iphone UIInterfaceOrientation
我已经将视图设置为FirstResponder,并且shouldAutorotateToInterfaceOrientation返回YES;
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)
interfaceOrientation {
return YES;
}
-(BOOL)canBecomeFirstResponder
{
return YES;
}
[self becomeFirstResponder];