Keyboard orientation issue in iOS 8.3 - iphone

I am facing keyboard orientation problem in iOS 8.3 also my keyboard is goes up when I tried to change the orientation from portrait to landscape.
How can I fix this issue for the time being Apple fix this issue in next release?

Related

Update UI when orientation is changing in SwiftUI

I've started to learn SwiftUI. I try to update UI when orientation is changing.
I added #Environment(\.horizontalSizeClass) var sizeClass in my view, and then iphone simulator updates the UI automatically when rotated. But iPad simulator does not update the UI when rotated. Could you tell me how to update UI for iPad?
If you take a look at the Device Size Classes in the Human Interface Guidelines, you'll notice that the iPads have 'Regular' width and height in both landscape and portrait mode.
So when you use .horizontalSizeClass, it is working on both iPhone and iPad, it's just that the iPad does not change sizeClass when rotated.
https://developer.apple.com/design/human-interface-guidelines/ios/visual-design/adaptivity-and-layout/
If you set frame sizes with a GeometryReader, they will be automatically updated when the device is rotated.
It's also pretty useful to just set the .frame(maxWidth:) on views, so that if the iPad is landscape, the view's content will be limited. Somewhere around 715 works well.

Incorrect color of UITabBar and UINavigationBar

I have a problem with working UITabBar and UINavigationBar (they are turning grey after changing screen orientation). I tried to reproduce this problem on the devices and have got the same result as I got with Xcode emulator: if I try to change screen orientation to landscape mode after opening my app, I have wrong color (grey) of UINavigationBar and UITabBar. Also if I open my app while screen orientation is in landscape mode, this problem can’t be seen.
So..I have found one worse way of fixing for me: if I set to barTintColor in UIToolbar not nil value, the problem is fixed, but there is no blur effect which I want.
I didn`t find any solution of this problem. Help me, please, if you can. Thanks

how can we fix rotation of screen in codenameone?

I am making a application in code name one, and as my requirement I want my screen fix.
like only portrait view or landscape view. How we can do it?
Please help.
Try Display.getInstance().canForceOrientation() and Display.getInstance().lockOrientation(boolean). Notice that not all devices support orientation locking.

iPhone App on iPad not responding to touch at first start

If my iPhone App (not universal) starts in landscape mode on my iPad (3rd gen) it does not respond to any touch until I either press the 1x/2x Button or change the orientation. After that it works as normal.
If I start it on my iPhone 5 in landscape mode, it works like a charm.
shouldAutorotateToInterfaceOrientation gives a YES in every View, so I think that's not the problem here.
The first View is a tabbar-view.
I have the same problem too on my iPad mini with iOS6.0.1.
What I do to solve the problem is to set the Supported interface orientations to all off in the info.plist.
Next, add the Supported interface orientations (iPad) in info.plist and only add the Potrait (bottom home button) in it.
It should make no difference to the apps orientation provided that you set it properly in the view controller.
Also, make sure you set a correct initial interface orientation.
It then solves my problem.
The above answers are a bit difficult, especially when using Xamarin. This answer does work:
from another question:
iphone app doesn't respond after starting in landscape orientation on iPad
The comment of Daniel Sandland did solve it for me:
[[UIApplication sharedApplication] setStatusBarHidden:NO withAnimation:UIStatusBarAnimationNone];
in didFinishLaunchingWithOptions,
(the C# variant for Xamarin)
I think this can be the problem of positioning of UI controls present on your screen.
The controls might be having auto positioning parameters (in XIB) may have been set in such way that the controls goes out of screen.
Try to correct resizing parameters in XIB.

UIImagePickerController differences from iPhone and iPad woes

I have an app designed for iPhone that makes use of the UIImagePickerController.
The app run in landscape only up until the image picker comes into view in its default portrait.
Problem 1:
On the iPhone when I rotate the device to portrait to view the image library the image picker view seems to do a flip as if rotating from landscape to portrait?
Problem 2:
I get the dreaded warning Using two-stage rotation animation. To use the smoother single-stage animation, this application must remove two-stage method implementations.
Problem 3.
on the iPad when selecting an image the image picker is dismissed and the view is back in landscape but ...... if I then do anything that requires alert view or the keyboard they appear as if the device is in portrait? This does not happen on the iPhone???
I know problem 2 is a long running issue but please can anyone help with problems 1 & 3?
Thanks
number 3 resolved :-)
"The keyboard will show up in the orientation of the statusbar, which doesn't always change with rotations for some reason. So if you want to display that view only in landscape set [UIApplication sharedApplication].statusBarOrientation = UIInterfaceOrientationLandscapeLeft; or whichever orientation you want to prefer in your viewWillAppear method."