omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular
    1. Home
    2. MalphasWats

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 2
    • Best 0
    • Controversial 0
    • Groups 0

    MalphasWats

    @MalphasWats

    0
    Reputation
    439
    Profile views
    2
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    MalphasWats Unfollow Follow

    Latest posts made by MalphasWats

    • RE: UI Force the keyboard to go away

      Thanks guys. I'll try the ScrollView approach when I get some time and see where it gets me.

      posted in Pythonista
      MalphasWats
      MalphasWats
    • UI Force the keyboard to go away

      Hi,

      I'm making a little application to post photos to my photo blog. For the sake of learning I thought I'd make a little UI to go with it, but I've run into a problem.

      I have made a sheet that has an ImageView at the top, with a button underneath to choose a photo from the camera roll. Below that, there are 3 TextFields for title and other stuff. I was quite proud of myself for creating a delegate class that shifts the whole View up when the text fields receive focus and then back down when they lose it! (I commented this all out to see if this was a problem but it still happens).

      The ImageView, by chance, ends up being about as tall as the space left when the keyboard is visible, and here's where I hit a problem.

      If I start the app, then press one of the text fields, the keyboard pops up. If I then press the 'choose image' button, I see the keyboard slide away as the photo picker slides in, but when I choose a photo, the ImageView updates and the keyboard slides back up but none of the text fields appear to be selected. Because the ImageView is the same size as the space above the keyboard, I can't select any of the other controls and can't dismiss the keyboard.

      Is there a way to programmatically dismiss the keyboard so I could force it to go away when the 'pick photo' button is pressed?

      Thanks

      posted in Pythonista
      MalphasWats
      MalphasWats