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

    Joined:
    Jul 3, 2012
    #1
    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?

    Thanks...
     
  2. xArtx macrumors 6502a

    Joined:
    Mar 30, 2012
    #2
  3. ArtOfWarfare macrumors 604

    ArtOfWarfare

    Joined:
    Nov 26, 2007
    #3
    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

    Joined:
    Jul 3, 2012
    #4
    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

    dejo

    Staff Member

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

Share This Page