uipopovercontroller animation like in iPad Maps.app - ipad

I'm wondering how to make the same popover animation as in Maps.app on iPad. It seems the popover grows in 2-directions at the same time.
Thanks in advance.

Related

UIToolbar as inputAccessoryView moves over UINavigationbar when rotating the iPad

UIToolbar over UINavigationBar on rotation. When coming first time its showing perfect but when I rotate it moves over navigation bar.
How can I solve this issue? Please suggest.
See the image below for more information
Thanks in advance!

Is it possible to disable the UIModalPresentationFormSheet animation?

On iPad, when a viewcontroller is shown using UIModalPresentationFormSheet and and the keyboard shows up, the system automatically move this viewcontroller up of about 55 px. This happens only in landscape.
Unfortunately this animation brake our way to deal with keyboard.
Does someone know how to disable it?

iPad application, changing popover dimensions whilst view is loaded

I have an app in which its my intention to change screen orientation as the user rotates the iPad. In my app I have several popovers.
The potential issue I'm concerned about is one of my popovers covers most the screen so if rotation changes, I'd want the popover to change view dimensions. Is it possible whilst a view is open or will i have to close it and reopen it.
Thanks
If your using a UIPopoverController the standard behaviour it does is to hide the popover when you rotate. It try's to then reposition it for you, this tends not to work so you want to use popoverController:willRepositionPopoverToRect:inView to set your new position and resize as needed.
If you use setPopoverContentSize:animated: it will re size for you, If your using autolayout you'll want to use preferredContentSize in the content viewController.
Apple Doc:
If the user rotates the device while a popover is visible, the popover
controller hides the popover and then shows it again at the end of the
rotation. The popover controller attempts to position the popover
appropriately for you but you can also implement the
popoverController:willRepositionPopoverToRect:inView: method in the
popover delegate to specify a new position.

Reposition UIActionSheet on iPad

I have a UIActionSheet which appears as a UIPopoverController on the iPad. I am trying to show it from a UIButton by using:
[self.exampleActionSheet showFromRect:self.exampleButton.frame inView:self.view animated:YES];
What I am trying to do now is to reposition this UIActionSheet on orientation change. But when I use the above code to reposition after the screen has rotated, it doesn't do so. Can anyone tell me how to do this properly?
A better workflow would be:
Dismiss actionsheet when a rotation occurs
Calculate the new rectangle where it should be presented from
Present a new actionsheet from the new rectangle

iOS Keyboard Rotating on a Fixed Landscape Orientation

I'm working on a iOS 6 iPad app. In the Target Summary page I've set the orientation to landscape.
From one screen I have a modal view appearing and when it does the keyboard automaically appears i.e. using becomeFirstResponder in the ViewDidLoad method
However when it appears it animates/rotates from the 'portrait' postion rather than simply appearing from the bottom.
Any ideas on this?
Cheers.
try moving the becomeFirstResponder call out of viewDidLoad and into viewDidAppear

Resources