Re: Supress keyboard on text field touch
Well I ended up disabling user interaction and disabling the text fields. They just sit there now and don't interact with any touches but I can change the content in the code. I thought about determining if the touches were in the frame but it seemed like a lot of effort. I was using IB for this view so I added invisible buttons over the text fields that would pick up touches.
Interesting thing is that when the alpha is less than 0.02 the buttons didn't pickup the "touch up inside" action. I didn't think this was normal behavior, specially for it to stop working at 0 and 0.1, it just didn't make any sense.
I ended up putting the button behind the disabled text field and it picks up the touches. If anyone does figure out how to suppress the keyboard and still pick up touch events from a text field I would love to know.
|