Trouble with onscreen keyboard orientation in iPhone OpenGL ES application.
        Posted  
        
            by Plumenator
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Plumenator
        
        
        
        Published on 2010-03-29T09:07:54Z
        Indexed on 
            2010/03/29
            9:13 UTC
        
        
        Read the original article
        Hit count: 571
        
I need to take keyboard input in my OpenGL ES application, so I just created an empty UITextView and added it as a subview to the main window along with the view that presents my content. I use the UITextview to control the keyboard and it works fine in a single orientation.
I then changed my code to support all orientations by rotating the OpenGL content myself based on UIDeviceOrientation notifications. To rotate the keyboard, I overrode the shouldAutoRotateInterfaceOrientation method in the UITextView's controller. But I still see that the keyboard does not rotate according to the orientation.
Any clues?
© Stack Overflow or respective owner