0
我有一個視圖內的tabbarcontroller和navigationcontroller和我的'willAnimateRotationToInterfaceOrientation'方法不會觸發。willAnimateRotationToInterfaceOrientation not firing iphone UIInterfaceOrientation
我已經將視圖設置爲FirstResponder,並且shouldAutorotateToInterfaceOrientation返回YES;
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)
interfaceOrientation {
return YES;
}
-(BOOL)canBecomeFirstResponder
{
return YES;
}
[self becomeFirstResponder];