willAnimateSecondHalfOfRotationFromInterfaceOrientation not called in root view controller
Posted
by pJosh
on Stack Overflow
See other posts from Stack Overflow
or by pJosh
Published on 2009-05-27T12:27:10Z
Indexed on
2010/05/26
21:31 UTC
Read the original article
Hit count: 342
iphone
|objective-c
I have created the one rootviewcontroller , and then make that geosensitive by writing
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return YES;
}
In rootviewcontroller willAnimateSecondHalfOfRotationFromInterfaceOrientation
method is called and images are resizing.
I also have some views on it, but when I rotate the screen the view will be rotate but the images are not resizing though I have used the same
-(void)willAnimateSecondHalfOfRotationFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation duration:(NSTimeInterval)duration
{
UIInterfaceOrientation toOrientation = self.interfaceOrientation;
}
method but it cannot called. So, what can I do? Please help me.
© Stack Overflow or respective owner