iOS Keyboard Rotating on a Fixed Landscape Orientation - ios

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

Related

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.

UIBarButtonItem changes the viewController's orientation

I got a UINavigationBar with an .rightBarButtonItem. If I tap on it, it pushes the new viewController and a .leftBarButtonItem is brought up automatically which takes me to the viewController I was before.
The problem is (when I tap on the .leftBarButtonItem) that the orientation is changed from landscape to portrait mode, though I want the app to stay in landscape mode. How can I fix that?
Thanks a lot!
It's not clear if you were in portrait mode before you pressed the right button bar item.
It sounds like the first view controller's shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation isn't returning YES for portrait orientations.

How to prevent iPad Modal that contain UIWebView to rotate to portrait

I have application that is only landscape with no other orentation supported.
But when I open modal view (modal contains UIWebView ([printView setView:webView])) it rotates the device to portrait.
The content stays in landscape view only iPad orientation. I mean the statusbar is rotated like it's in portrait. So I want no rotation at all, just to stay in landscape.
I have solved the problem. Problem was in viewController that was programaticly created.
Solution is to create viewControler and in .m file force landscape orentation.

UINavigationController scrolls down on back button click

I'm working on an iPhone / iPad app with several navigation controllers. When I click a back button of a view while the device is in landscape mode, the previous view scrolls vertically into the screen, instead of scrolling horizontally as usual.
Push animations always work horizontally, as it should be.
What could be causing this weird problem?
Thanks,
Adrian
Are you sure the view controller, you're getting back to, is set to deal with rotation properly ?
I had a similar issue using MonoTouch.Dialog until I added Autorotate = true; to every (non-leaf) DialogViewController inside my application.

Problem with the position of the view of RootController inside of a SplitView

I changed my rootView controller of my split view to add one UIimage and an UIView. All works fine but when I navigate in portrait mode and change to landscape mode my view is a few pixels down than it have to stay. If I navigate in landscape mode it doesn't occur. And the most strange is if I navigate in portrait and I push the popover button and then I change the orientation, the view of the root is in the perfect place :S.
Is like the popover put it in the correct place.
Could you help me please?
Thank you very much.
Check all places where you manually set property frame of your views that are not correctly displayed.
Check property autoresizingMask of your all view.
If problem wasn't found place your code here.
Finally I resolve the problem: When I dismiss the popover I have to get out the animation. If I do this, all works fine :)

Resources