Keyboard in not appearing correctly in web view - Landscape mode2019 Community Moderator ElectioniOS 8 Landscape orientation: Keyboard does not display correctlyKeyboard appears in wrong orientation in iostabBarController and navigationControllers in landscape mode, episode IIUINavigationBar root view doesn't rotate into landscapePresent modalViewController in Landscape mode using storyboard in IOS 6Force views to only support landscape modeiPhone force orientation change to Portrait mode after dismissing custom navigationControllerUIScrollView cannot display image either in Portrait or Landscape modeios: shouldAutorotate of presented view controller is not calledPortrait mode all views except one view to be rotated programatically to landscape under a UINavigationControllerObjective-c using UIInterfaceOrientationMask to control orientationsupportedInterfaceOrientations not being called in plus size devices
Regex for certain words causes Spaces
How much stiffer are 23c tires over 28c?
Word for a person who has no opinion about whether god exists
Do f-stop and exposure time perfectly cancel?
Reverse string, can I make it faster?
Is there any way to damage Intellect Devourer(s) when already within a creature's skull?
Is there an equal sign with wider gap?
Am I not good enough for you?
Force user to remove USB token
Should I take out a loan for a friend to invest on my behalf?
Should I tell my boss the work he did was worthless
Offered promotion but I'm leaving. Should I tell?
Time travel short story where dinosaur doesn't taste like chicken
Why is there a voltage between the mains ground and my radiator?
What wound would be of little consequence to a biped but terrible for a quadruped?
My story is written in English, but is set in my home country. What language should I use for the dialogue?
Good for you! in Russian
Why the color red for the Republican Party
PTIJ: How can I halachically kill a vampire?
What to do when during a meeting client people start to fight (even physically) with each others?
What is the likely impact of grounding an entire aircraft series?
Replacing Windows 7 security updates with anti-virus?
Virginia employer terminated employee and wants signing bonus returned
Is there a window switcher for GNOME that shows the actual window?
Keyboard in not appearing correctly in web view - Landscape mode
2019 Community Moderator ElectioniOS 8 Landscape orientation: Keyboard does not display correctlyKeyboard appears in wrong orientation in iostabBarController and navigationControllers in landscape mode, episode IIUINavigationBar root view doesn't rotate into landscapePresent modalViewController in Landscape mode using storyboard in IOS 6Force views to only support landscape modeiPhone force orientation change to Portrait mode after dismissing custom navigationControllerUIScrollView cannot display image either in Portrait or Landscape modeios: shouldAutorotate of presented view controller is not calledPortrait mode all views except one view to be rotated programatically to landscape under a UINavigationControllerObjective-c using UIInterfaceOrientationMask to control orientationsupportedInterfaceOrientations not being called in plus size devices
I'm presenting custom web view like this.
let vc = CustomWebViewVC.viewController()
vc.delegate = self
present(vc, animated: true, completion: nil)
I've implemented this to show custom web view in landscape mode.
override var preferredInterfaceOrientationForPresentation: UIInterfaceOrientation
return .landscapeRight
//----------------------------------------------------------
override var shouldAutorotate: Bool
return false
Issue
CustomWebViewVC is correctly opens in landscape mode but when I click on textfield inside of webivew this happens.

I don't know what is the issue is.
Any suggestions?
ios swift webview landscape
|
show 3 more comments
I'm presenting custom web view like this.
let vc = CustomWebViewVC.viewController()
vc.delegate = self
present(vc, animated: true, completion: nil)
I've implemented this to show custom web view in landscape mode.
override var preferredInterfaceOrientationForPresentation: UIInterfaceOrientation
return .landscapeRight
//----------------------------------------------------------
override var shouldAutorotate: Bool
return false
Issue
CustomWebViewVC is correctly opens in landscape mode but when I click on textfield inside of webivew this happens.

I don't know what is the issue is.
Any suggestions?
ios swift webview landscape
Did you test in real device ?
– Prashant Tukadiya
Mar 7 at 7:32
This is the screen shot of real device
– Mahendra GP
Mar 7 at 7:33
Try any other site like FB. Check the same issue appear or not. May be webpage issue
– Prashant Tukadiya
Mar 7 at 7:36
I tried in device's safari there is no issue init
– Mahendra GP
Mar 7 at 7:37
The same url in device's safari is working fine and keyboard is appearing correctly
– Mahendra GP
Mar 7 at 7:42
|
show 3 more comments
I'm presenting custom web view like this.
let vc = CustomWebViewVC.viewController()
vc.delegate = self
present(vc, animated: true, completion: nil)
I've implemented this to show custom web view in landscape mode.
override var preferredInterfaceOrientationForPresentation: UIInterfaceOrientation
return .landscapeRight
//----------------------------------------------------------
override var shouldAutorotate: Bool
return false
Issue
CustomWebViewVC is correctly opens in landscape mode but when I click on textfield inside of webivew this happens.

I don't know what is the issue is.
Any suggestions?
ios swift webview landscape
I'm presenting custom web view like this.
let vc = CustomWebViewVC.viewController()
vc.delegate = self
present(vc, animated: true, completion: nil)
I've implemented this to show custom web view in landscape mode.
override var preferredInterfaceOrientationForPresentation: UIInterfaceOrientation
return .landscapeRight
//----------------------------------------------------------
override var shouldAutorotate: Bool
return false
Issue
CustomWebViewVC is correctly opens in landscape mode but when I click on textfield inside of webivew this happens.

I don't know what is the issue is.
Any suggestions?
ios swift webview landscape
ios swift webview landscape
asked Mar 7 at 7:31
Mahendra GPMahendra GP
3,90411131
3,90411131
Did you test in real device ?
– Prashant Tukadiya
Mar 7 at 7:32
This is the screen shot of real device
– Mahendra GP
Mar 7 at 7:33
Try any other site like FB. Check the same issue appear or not. May be webpage issue
– Prashant Tukadiya
Mar 7 at 7:36
I tried in device's safari there is no issue init
– Mahendra GP
Mar 7 at 7:37
The same url in device's safari is working fine and keyboard is appearing correctly
– Mahendra GP
Mar 7 at 7:42
|
show 3 more comments
Did you test in real device ?
– Prashant Tukadiya
Mar 7 at 7:32
This is the screen shot of real device
– Mahendra GP
Mar 7 at 7:33
Try any other site like FB. Check the same issue appear or not. May be webpage issue
– Prashant Tukadiya
Mar 7 at 7:36
I tried in device's safari there is no issue init
– Mahendra GP
Mar 7 at 7:37
The same url in device's safari is working fine and keyboard is appearing correctly
– Mahendra GP
Mar 7 at 7:42
Did you test in real device ?
– Prashant Tukadiya
Mar 7 at 7:32
Did you test in real device ?
– Prashant Tukadiya
Mar 7 at 7:32
This is the screen shot of real device
– Mahendra GP
Mar 7 at 7:33
This is the screen shot of real device
– Mahendra GP
Mar 7 at 7:33
Try any other site like FB. Check the same issue appear or not. May be webpage issue
– Prashant Tukadiya
Mar 7 at 7:36
Try any other site like FB. Check the same issue appear or not. May be webpage issue
– Prashant Tukadiya
Mar 7 at 7:36
I tried in device's safari there is no issue init
– Mahendra GP
Mar 7 at 7:37
I tried in device's safari there is no issue init
– Mahendra GP
Mar 7 at 7:37
The same url in device's safari is working fine and keyboard is appearing correctly
– Mahendra GP
Mar 7 at 7:42
The same url in device's safari is working fine and keyboard is appearing correctly
– Mahendra GP
Mar 7 at 7:42
|
show 3 more comments
2 Answers
2
active
oldest
votes
Add following code in viewDidLoad
Swift 4
let value = UIInterfaceOrientation.landscapeLeft.rawValue
UIDevice.current.setValue(value, forKey: "orientation")
Didn't worked:(
– Mahendra GP
Mar 7 at 8:25
add a comment |
The missing method was this
override var supportedInterfaceOrientations: UIInterfaceOrientationMask
return UIInterfaceOrientationMask.landscapeRight
After adding this in view controller did the trick.
To open viewcontroller in landscape mode you need to implement all three method as I did.
override var preferredInterfaceOrientationForPresentation: UIInterfaceOrientation
return .landscapeRight
//----------------------------------------------------------
override var shouldAutorotate: Bool
return false
override var supportedInterfaceOrientations: UIInterfaceOrientationMask
return UIInterfaceOrientationMask.landscapeRight
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55038297%2fkeyboard-in-not-appearing-correctly-in-web-view-landscape-mode%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Add following code in viewDidLoad
Swift 4
let value = UIInterfaceOrientation.landscapeLeft.rawValue
UIDevice.current.setValue(value, forKey: "orientation")
Didn't worked:(
– Mahendra GP
Mar 7 at 8:25
add a comment |
Add following code in viewDidLoad
Swift 4
let value = UIInterfaceOrientation.landscapeLeft.rawValue
UIDevice.current.setValue(value, forKey: "orientation")
Didn't worked:(
– Mahendra GP
Mar 7 at 8:25
add a comment |
Add following code in viewDidLoad
Swift 4
let value = UIInterfaceOrientation.landscapeLeft.rawValue
UIDevice.current.setValue(value, forKey: "orientation")
Add following code in viewDidLoad
Swift 4
let value = UIInterfaceOrientation.landscapeLeft.rawValue
UIDevice.current.setValue(value, forKey: "orientation")
answered Mar 7 at 7:43
Prashant TukadiyaPrashant Tukadiya
7,67622350
7,67622350
Didn't worked:(
– Mahendra GP
Mar 7 at 8:25
add a comment |
Didn't worked:(
– Mahendra GP
Mar 7 at 8:25
Didn't worked:(
– Mahendra GP
Mar 7 at 8:25
Didn't worked:(
– Mahendra GP
Mar 7 at 8:25
add a comment |
The missing method was this
override var supportedInterfaceOrientations: UIInterfaceOrientationMask
return UIInterfaceOrientationMask.landscapeRight
After adding this in view controller did the trick.
To open viewcontroller in landscape mode you need to implement all three method as I did.
override var preferredInterfaceOrientationForPresentation: UIInterfaceOrientation
return .landscapeRight
//----------------------------------------------------------
override var shouldAutorotate: Bool
return false
override var supportedInterfaceOrientations: UIInterfaceOrientationMask
return UIInterfaceOrientationMask.landscapeRight
add a comment |
The missing method was this
override var supportedInterfaceOrientations: UIInterfaceOrientationMask
return UIInterfaceOrientationMask.landscapeRight
After adding this in view controller did the trick.
To open viewcontroller in landscape mode you need to implement all three method as I did.
override var preferredInterfaceOrientationForPresentation: UIInterfaceOrientation
return .landscapeRight
//----------------------------------------------------------
override var shouldAutorotate: Bool
return false
override var supportedInterfaceOrientations: UIInterfaceOrientationMask
return UIInterfaceOrientationMask.landscapeRight
add a comment |
The missing method was this
override var supportedInterfaceOrientations: UIInterfaceOrientationMask
return UIInterfaceOrientationMask.landscapeRight
After adding this in view controller did the trick.
To open viewcontroller in landscape mode you need to implement all three method as I did.
override var preferredInterfaceOrientationForPresentation: UIInterfaceOrientation
return .landscapeRight
//----------------------------------------------------------
override var shouldAutorotate: Bool
return false
override var supportedInterfaceOrientations: UIInterfaceOrientationMask
return UIInterfaceOrientationMask.landscapeRight
The missing method was this
override var supportedInterfaceOrientations: UIInterfaceOrientationMask
return UIInterfaceOrientationMask.landscapeRight
After adding this in view controller did the trick.
To open viewcontroller in landscape mode you need to implement all three method as I did.
override var preferredInterfaceOrientationForPresentation: UIInterfaceOrientation
return .landscapeRight
//----------------------------------------------------------
override var shouldAutorotate: Bool
return false
override var supportedInterfaceOrientations: UIInterfaceOrientationMask
return UIInterfaceOrientationMask.landscapeRight
answered Mar 7 at 8:35
Mahendra GPMahendra GP
3,90411131
3,90411131
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55038297%2fkeyboard-in-not-appearing-correctly-in-web-view-landscape-mode%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Did you test in real device ?
– Prashant Tukadiya
Mar 7 at 7:32
This is the screen shot of real device
– Mahendra GP
Mar 7 at 7:33
Try any other site like FB. Check the same issue appear or not. May be webpage issue
– Prashant Tukadiya
Mar 7 at 7:36
I tried in device's safari there is no issue init
– Mahendra GP
Mar 7 at 7:37
The same url in device's safari is working fine and keyboard is appearing correctly
– Mahendra GP
Mar 7 at 7:42