UIWebView rotation overlapping buttons - ios

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.

Related

View not positioning correctly in landscape mode

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?

How do I keep the mergExt Banner control from covering the tab bar at the bottom of an IOS device

I am just getting started with using MergExt and I am unsure how keep the iAd banner from covering my Tab Bar at the bottom of the IOS display? Additionally is it possible to manually move its position to any other location on the screen in case it covers any other controls? I have tried looking about for information but havent found much on the subject and I have tried playing with setting the rectangle to no avail. any info would be appreciated.
mergBanner displays the banner at the bottom of your screen. What many people do is align the tab bar to the top of the banner and use the area below to display a static ad/image until the iAd is loaded. There's currently no options for setting the rect of placing the add anywhere other than the bottom of the screen.

Adjust UIPopover when the iPad keypad splits

I have an iPad app in landscape orientation.
Which has multiple UIButtons on the screen from top to bottom which present a UIPopover with a TextView in it.
When the keyboard appears and covers the button, the popover moves over the keyboard, and comes back nicely when the keyboard is dismissed.
but when the keyboard is suddenly put into split mode and if the popover was for a button below the keyboard then the popover comes back and goes behind one of the halves of the keyboard.
How should such situation be handled gracefully ?
Would creating a transparent view/button that you launch the Popover view from work? Then you could move the button to where ever you want.

Stopping the iPad keyboard from scrolling the webpage too much

It looks like the Safari keyboard works like this on iPads...
If the webpage originally reaches the bottom of the screen, when the keyboard appears it never scrolls past the bottom of the webpage.
If the webpage originally doesn't reach the bottom of the screen and the textfield that has the focus is more than halfway down the screen, it scrolls the webpage so that the current textfield is now halfway down the screen and doesn't care if the area below the original webpage is showing.
Basically I want to have a webpage that doesn't fill the screen vertically and yet I don't want the keyboard to cause the screen to scroll past the bottom of the webpage because that would hide the top part of the webpage and instead show the blank area below the webpage.
In portrait mode on an iPad the following webpage is always showing even when a textfield is active and the keyboard is showing:
http://sky-walker.net/temp/ipad/a
But when you view that webpage in landscape mode and select the bottom textfield, the webpage scrolls so that the bottom textfield is halfway up the screen. I want it to be at the bottom of the screen.
http://sky-walker.net/temp/ipad/b
In landscape mode the previous link fills the entire screen and so if you click on the bottom textfield (after scrolling) the textfield appears at the bottom of the screen when the keyboard is visible rather than the screen scrolling until the textfield is halfway down the screen.
In portrait mode the previous link doesn't originally fill the screen so if you click on the bottom textfield (making the keyboard appear) it scrolls up so that it is halfway up the screen.
http://sky-walker.net/temp/ipad/d
The final link fills the entire screen for portrait mode as well and when the bottom textfield is selected it doesnt scroll past the bottom of the webpage when the keyboard becomes visible.
Maybe what it is doing when the webpage isn't filling the screen is that it is remembering the empty space at the bottom and then it scrolls up (hiding the top) when the keyboard is visible. I want it to forget about the empty space at the bottom when the keyboard appears.
I faced a very similar issue. Here's what I do.
I subscribe to UIKeyboardWillShowNotification to get the keyboard size then when the scroll view scrolls up more than the keyboard height then I set the scroll offset to the keyboard height.

UIPageControl with iPad SplitView for a magazine

I'm creating a magazine using the SplitView feature with each article at the left, then to navigate the pages I added a UIPageControl.
This works PERFECTLY when vertical, but when horizontal the PageControl is hidden. I'm assuming it's either some "autoRotate" code or something in the nib...BUT WHAT???
I'm pretty sure it's hidden because the detail view gets cut off at the bottom when the screen is turned. See if you can move the UIPageControl up the page when the screen goes to the horizontal mode and then move it back when the screen goes to the vertical mode.

Resources