UITextView text indicator in the wrong place The Next CEO of Stack OverflowHow do I size a UITextView to its content?How to lose margin/padding in UITextView?Vertically align text to top within a UILabelPlaceholder in UITextViewIs there a way to put UITextView's scroll indicator to outside UITextView?UITextView text scrolls up on return key?Custom UITextView caret in wrong placeUITextView starts at Bottom or Middle of the textUITextView places text lower than I want it to beWhat is a proper way of aligning text in a UITextView to the top-left point?

How to get the last not-null value in an ordered column of a huge table?

How to find image of a complex function with given constraints?

It is correct to match light sources with the same color temperature?

Why am I getting "Static method cannot be referenced from a non static context: String String.valueOf(Object)"?

What does "shotgun unity" refer to here in this sentence?

Calculate the Mean mean of two numbers

Why do we say 'Un seul M' and not 'Une seule M' even though M is a "consonne"

How to Implement Deterministic Encryption Safely in .NET

Is it ok to trim down a tube patch?

Lucky Feat: How can "more than one creature spend a luck point to influence the outcome of a roll"?

What was Carter Burke's job for "the company" in Aliens?

Is there a way to save my career from absolute disaster?

How to avoid supervisors with prejudiced views?

Can I board the first leg of the flight without having final country's visa?

Expressing the idea of having a very busy time

Help/tips for a first time writer?

Does higher Oxidation/ reduction potential translate to higher energy storage in battery?

Traveling with my 5 year old daughter (as the father) without the mother from Germany to Mexico

Aggressive Under-Indexing and no data for missing index

Where do students learn to solve polynomial equations these days?

Airplane gently rocking its wings during whole flight

Small nick on power cord from an electric alarm clock, and copper wiring exposed but intact

Can Sneak Attack be used when hitting with an improvised weapon?

Is it convenient to ask the journal's editor for two additional days to complete a review?



UITextView text indicator in the wrong place



The Next CEO of Stack OverflowHow do I size a UITextView to its content?How to lose margin/padding in UITextView?Vertically align text to top within a UILabelPlaceholder in UITextViewIs there a way to put UITextView's scroll indicator to outside UITextView?UITextView text scrolls up on return key?Custom UITextView caret in wrong placeUITextView starts at Bottom or Middle of the textUITextView places text lower than I want it to beWhat is a proper way of aligning text in a UITextView to the top-left point?










1















I'm having an issue trying to have a consistent view of my uitextview.



when it appears on my view that blue indicator stay out of it content



enter image description here



but when I start typing it goes to the right place



enter image description here



also when I delete the text that happens:enter image description here



Thats 's the code that configures my text view:



 textView.delegate = self
textView.layer.borderColor = UIColor.lightGray.cgColor
textView.layer.borderWidth = 0.5
textView.layer.cornerRadius = 15
textView.contentInset = UIEdgeInsets(top: 4,left: 4,bottom: 4,right: 4)
textView.layer.masksToBounds = true


I added it to my view will appear. Don't know why it is happening.










share|improve this question


























    1















    I'm having an issue trying to have a consistent view of my uitextview.



    when it appears on my view that blue indicator stay out of it content



    enter image description here



    but when I start typing it goes to the right place



    enter image description here



    also when I delete the text that happens:enter image description here



    Thats 's the code that configures my text view:



     textView.delegate = self
    textView.layer.borderColor = UIColor.lightGray.cgColor
    textView.layer.borderWidth = 0.5
    textView.layer.cornerRadius = 15
    textView.contentInset = UIEdgeInsets(top: 4,left: 4,bottom: 4,right: 4)
    textView.layer.masksToBounds = true


    I added it to my view will appear. Don't know why it is happening.










    share|improve this question
























      1












      1








      1


      0






      I'm having an issue trying to have a consistent view of my uitextview.



      when it appears on my view that blue indicator stay out of it content



      enter image description here



      but when I start typing it goes to the right place



      enter image description here



      also when I delete the text that happens:enter image description here



      Thats 's the code that configures my text view:



       textView.delegate = self
      textView.layer.borderColor = UIColor.lightGray.cgColor
      textView.layer.borderWidth = 0.5
      textView.layer.cornerRadius = 15
      textView.contentInset = UIEdgeInsets(top: 4,left: 4,bottom: 4,right: 4)
      textView.layer.masksToBounds = true


      I added it to my view will appear. Don't know why it is happening.










      share|improve this question














      I'm having an issue trying to have a consistent view of my uitextview.



      when it appears on my view that blue indicator stay out of it content



      enter image description here



      but when I start typing it goes to the right place



      enter image description here



      also when I delete the text that happens:enter image description here



      Thats 's the code that configures my text view:



       textView.delegate = self
      textView.layer.borderColor = UIColor.lightGray.cgColor
      textView.layer.borderWidth = 0.5
      textView.layer.cornerRadius = 15
      textView.contentInset = UIEdgeInsets(top: 4,left: 4,bottom: 4,right: 4)
      textView.layer.masksToBounds = true


      I added it to my view will appear. Don't know why it is happening.







      ios swift uitextview






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 7 at 18:18









      Victor LucasVictor Lucas

      264




      264






















          1 Answer
          1






          active

          oldest

          votes


















          -1














          "UIEdgeInsets" have 4 points from all side so it creates an issue for the indicator. so plz fix 0.5 it's working fine. otherwise, open storyboard and manage option.



          textView.delegate = self
          textView.layer.borderColor = UIColor.lightGray.cgColor
          textView.layer.borderWidth = 0.5
          textView.layer.cornerRadius = 15
          textView.contentInset = UIEdgeInsets(top: 0.5,left: 0.5,bottom: 0.5,right: 0.5)
          textView.layer.masksToBounds = true


          Plz Check Image You should manage from here






          share|improve this answer

























          • that didn't work.

            – Victor Lucas
            Mar 27 at 16:53











          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%2f55050392%2fuitextview-text-indicator-in-the-wrong-place%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          -1














          "UIEdgeInsets" have 4 points from all side so it creates an issue for the indicator. so plz fix 0.5 it's working fine. otherwise, open storyboard and manage option.



          textView.delegate = self
          textView.layer.borderColor = UIColor.lightGray.cgColor
          textView.layer.borderWidth = 0.5
          textView.layer.cornerRadius = 15
          textView.contentInset = UIEdgeInsets(top: 0.5,left: 0.5,bottom: 0.5,right: 0.5)
          textView.layer.masksToBounds = true


          Plz Check Image You should manage from here






          share|improve this answer

























          • that didn't work.

            – Victor Lucas
            Mar 27 at 16:53















          -1














          "UIEdgeInsets" have 4 points from all side so it creates an issue for the indicator. so plz fix 0.5 it's working fine. otherwise, open storyboard and manage option.



          textView.delegate = self
          textView.layer.borderColor = UIColor.lightGray.cgColor
          textView.layer.borderWidth = 0.5
          textView.layer.cornerRadius = 15
          textView.contentInset = UIEdgeInsets(top: 0.5,left: 0.5,bottom: 0.5,right: 0.5)
          textView.layer.masksToBounds = true


          Plz Check Image You should manage from here






          share|improve this answer

























          • that didn't work.

            – Victor Lucas
            Mar 27 at 16:53













          -1












          -1








          -1







          "UIEdgeInsets" have 4 points from all side so it creates an issue for the indicator. so plz fix 0.5 it's working fine. otherwise, open storyboard and manage option.



          textView.delegate = self
          textView.layer.borderColor = UIColor.lightGray.cgColor
          textView.layer.borderWidth = 0.5
          textView.layer.cornerRadius = 15
          textView.contentInset = UIEdgeInsets(top: 0.5,left: 0.5,bottom: 0.5,right: 0.5)
          textView.layer.masksToBounds = true


          Plz Check Image You should manage from here






          share|improve this answer















          "UIEdgeInsets" have 4 points from all side so it creates an issue for the indicator. so plz fix 0.5 it's working fine. otherwise, open storyboard and manage option.



          textView.delegate = self
          textView.layer.borderColor = UIColor.lightGray.cgColor
          textView.layer.borderWidth = 0.5
          textView.layer.cornerRadius = 15
          textView.contentInset = UIEdgeInsets(top: 0.5,left: 0.5,bottom: 0.5,right: 0.5)
          textView.layer.masksToBounds = true


          Plz Check Image You should manage from here







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Mar 8 at 13:21









          Nilesh Panchal

          551517




          551517










          answered Mar 8 at 8:02









          KopsKops

          1333




          1333












          • that didn't work.

            – Victor Lucas
            Mar 27 at 16:53

















          • that didn't work.

            – Victor Lucas
            Mar 27 at 16:53
















          that didn't work.

          – Victor Lucas
          Mar 27 at 16:53





          that didn't work.

          – Victor Lucas
          Mar 27 at 16:53



















          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%2f55050392%2fuitextview-text-indicator-in-the-wrong-place%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

          1928 у кіно

          Захаров Федір Захарович

          Ель Греко