2012-01-25 5 views

答えて

0

これが起因し得るあなたのVCはVCの階層構造の内部にネストされているような方法で

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation 
{ 
    return YES; 
} 


- (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration { 
    NSLog(@"I am starting to rotate"); 
} 

おかげで... ...それを理解することはできません。

This SOのポストはあなたを助ける必要があります。

0
-(void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration{ 
    if(self.interfaceOrientation == UIInterfaceOrientationLandscapeLeft || 
     self.interfaceOrientation == UIInterfaceOrientationLandscapeRight){ 
      NSLog(@"I am starting to rotate in Landscape"); 

    } else { 
      NSLog(@"I am starting to rotate in Portrait"); 

    } 
} 

をし、それが

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation 
{ 
    return YES; 
} 
関連する問題