View not positioning correctly in landscape mode - ios

I have a viewcontroller having 2views one for viewing video where a video can be played.everything works fine in portrait mode but when changed to landscape the video view occupies the entire screen.i need the activity indicator to be at the center of the view but it does not happen.Also the play pause conrols are placed in a separate view at the bottom of videoview it is also not aligned when in landscape mode.Can anyone help me out?

Related

Stop status bar from rotating when switching views on orientation

I have 2 views. A portrait detail view that when rotated to landscape, does a manual segue to a full screen photo viewer. The portrait detail view returns NO for shouldAutorotate and prefersStatusBarHidden.
When I rotate from portrait to landscape, just before the landscape view fades in, I can see the portrait view resize slightly as the status bar gets hidden and then the status bar moves from the top to the side.
The transition looks a bit ugly. I'd rather the status bar remains visible as the device is rotated to portrait, since it will get covered over by the landscape view anyway. Is it possible to do this?
I don't think this is possible.
The only way I see it working is if you do the rotation yourself and not with the device ability

iPad Camera OverlayView Orientation issue

My application is always run in Landscape mode only. I have add four custom buttons on overlay view dynamically. I want to change the position of buttons when orientation change in landscape and portrait mode.How to position my Camera Overlay View buttons in a different location when my device orientation will changing?
Please help me to fix my problem. Thanks.
I have the same problem. It's not that we're not receiving the notifications. The problem is that the camera overlay view doesn't resize itself to fit the new orientation. For example, the view will rotate when going from landscape to portrait but the view still has a landscape aspect ratio, i.e., the view is wider than it is high.

UIWebView rotation overlapping buttons

I have a UIWebView set up to reach three edges of a page in portrait mode. there is a small space at the top of the page where I put a few UIButtons and a UITextField.
On page load, I load a web page into the UIWebView and in portrait all looks as expected. When I ask the simulator to rotate left or right to landscape, the buttons disappear or after playing a bit end up with the UIWebView behind the buttons that were at the top. I would like the UIWebView to stop just under the buttons as it did in portrait mode.
Any assistance would be appreciated.

iPad adding view and then telling it to resize based on orientation mode?

NEW EDIT:
I have narrowed my problem to this - i have a view that i add to my main view. That view is nib file in portrait orientation. That view can be added both in landscape or portrait mode. After adding it as subview how do i tell it, device is now in landscape mode, you should autoresize to fit?
OLD:
/*
I have a view, that is loaded via [NSBundle mainBundle] loadNibNamed. When button show is pressed view should show, and likewise when button hide is pressed view should hide. And this works ok.
Problem is with when device orientation is changed (lets say from portrait to landscape mode). If view is shown it resizes ok, and everything works fine. But if view is hidden, and i rotate the device and press show, view is shown, but not adjusted to new layout. It retains its original dimensions.
It is as automatic resizing is only applied to visible components. Is there some way to force resizing of the view?
*/
When you add your view, use the following:
[subViewFromNib setBounds:[viewYouAddedSubviewTo bounds]];

iPad uitableview off position when rotate landscape and portrait

I am developing an iPad GUI with 2 uitableview top and bottom, both occupying half the screen with a navigational controller. when i rotate the view, the table does up and hide behind the navigational controller. when launch it doesn't. it only happens when it rotates. Image 1 shows the table when launch. image 2 shows the columns missing when rotating to landscape. image 3 shows the column missing when shifted back to portrait. is it possible to code a fix position on the screen when portrait and landscape? meaning i set the position when detecting the iPad is in portrait, and landscape.
Override willAnimateRotationToInterfaceOrientation:duration: method in your main view controller, and resize your UITableViews by setting their frames.
See also:
http://developer.apple.com/library/ios/documentation/uikit/reference/UIView_Class/UIView/UIView.html#//apple_ref/occ/instp/UIView/frame
http://developer.apple.com/library/ios/#documentation/uikit/reference/UIViewController_Class/Reference/Reference.html#//apple_ref/occ/instm/UIViewController/willRotateToInterfaceOrientation:duration:

Resources