Resolved speech to text in UITextView

Discussion in 'iOS Programming' started by straber, Mar 10, 2013.

  1. straber, Mar 10, 2013
    Last edited: Mar 17, 2013

    straber macrumors member

    Jul 3, 2012
    I've noticed a lot of apps lately like facebook that have a microphone button next to the space bar so you can talk instead of type into a text view. How can I implement this for UITextViews in my app?

  2. xArtx macrumors 6502a

    Mar 30, 2012
  3. ArtOfWarfare macrumors G3


    Nov 26, 2007
    You need not do anything. The dictation key is automatically placed next to the space bar whenever it's supported. (Involved variables in determining whether it's supported are: hardware, iOS revision, user's language, and user's settings.)
  4. straber thread starter macrumors member

    Jul 3, 2012
    So why then on my iPhone 5 would the microphone button show up when I'm posting in the Facebook app, but it does not appear when editing the text in a UITextView in my app?


    Nevermind, it is showing up now. The time I noticed it wasn't there was while debugging in the simulator, on the device it works.
  5. dejo Moderator


    Staff Member

    Sep 2, 2004
    The Centennial State
    That's because the Simulator "involves" one of those variables that ArtOfWarfare mentioned.

Share This Page