In my app i have an image view in one view controller and a movie player in other view controller.Now i want to display the image or movie in both mode i.e in portrait mode and in landscape mode .How can i define frame for each and how do i notify it when the view changes its position from one to other.
Thanks,
Christy
Checkout the documentation for UIViewController and look at the Responding to View Rotation Events Methods like:
- willRotateToInterfaceOrientation:duration:You can put your code for setting the new frame sizes in those functions along with any notification functions you want.player.view.frame = CGRectMake(x,y,w,h);