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










1















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.



enter image description here



I don't know what is the issue is.



Any suggestions?










share|improve this question






















  • 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















1















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.



enter image description here



I don't know what is the issue is.



Any suggestions?










share|improve this question






















  • 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













1












1








1








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.



enter image description here



I don't know what is the issue is.



Any suggestions?










share|improve this question














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.



enter image description here



I don't know what is the issue is.



Any suggestions?







ios swift webview landscape






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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

















  • 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












2 Answers
2






active

oldest

votes


















0














Add following code in viewDidLoad



Swift 4



let value = UIInterfaceOrientation.landscapeLeft.rawValue
UIDevice.current.setValue(value, forKey: "orientation")





share|improve this answer























  • Didn't worked:(

    – Mahendra GP
    Mar 7 at 8:25


















0














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






share|improve this answer






















    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
    );



    );













    draft saved

    draft discarded


















    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









    0














    Add following code in viewDidLoad



    Swift 4



    let value = UIInterfaceOrientation.landscapeLeft.rawValue
    UIDevice.current.setValue(value, forKey: "orientation")





    share|improve this answer























    • Didn't worked:(

      – Mahendra GP
      Mar 7 at 8:25















    0














    Add following code in viewDidLoad



    Swift 4



    let value = UIInterfaceOrientation.landscapeLeft.rawValue
    UIDevice.current.setValue(value, forKey: "orientation")





    share|improve this answer























    • Didn't worked:(

      – Mahendra GP
      Mar 7 at 8:25













    0












    0








    0







    Add following code in viewDidLoad



    Swift 4



    let value = UIInterfaceOrientation.landscapeLeft.rawValue
    UIDevice.current.setValue(value, forKey: "orientation")





    share|improve this answer













    Add following code in viewDidLoad



    Swift 4



    let value = UIInterfaceOrientation.landscapeLeft.rawValue
    UIDevice.current.setValue(value, forKey: "orientation")






    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Mar 7 at 7:43









    Prashant TukadiyaPrashant Tukadiya

    7,67622350




    7,67622350












    • 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





    Didn't worked:(

    – Mahendra GP
    Mar 7 at 8:25













    0














    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






    share|improve this answer



























      0














      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






      share|improve this answer

























        0












        0








        0







        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






        share|improve this answer













        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







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Mar 7 at 8:35









        Mahendra GPMahendra GP

        3,90411131




        3,90411131



























            draft saved

            draft discarded
















































            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.




            draft saved


            draft discarded














            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





















































            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







            Popular posts from this blog

            Thal And Out Agency railway station See also References External links Navigation menuOfficial Web Site of Pakistan RailwaysArchivedOfficial Web Site of Pakistan Railwayseeexpanding ite

            Understanding generators in Python2019 Community Moderator ElectionGenerator function not working pythonFor loop not executing two timesGenerators - Printing generated valuesWhy can a python generator only be used once?What exactly do generators do?What does the “yield” keyword do?What does “list comprehension” mean? How does it work and how can I use it?sklearn Kfold acces single fold instead of for loopIs a generator the callable? Which is the generator?Apply Border To Range Of Cells Using OpenpyxlCalling an external command in PythonWhat are metaclasses in Python?What is the difference between @staticmethod and @classmethod?Finding the index of an item given a list containing it in PythonDifference between append vs. extend list methods in PythonHow can I safely create a nested directory in Python?Does Python have a ternary conditional operator?Understanding slice notationUnderstanding Python super() with __init__() methodsDoes Python have a string 'contains' substring method?

            Zrinski family tree See also Navigation menu