Keyboard and cursor show, but I can't type inside UITextFields and UITextViews

前端 未结 7 585
攒了一身酷
攒了一身酷 2020-11-30 06:45

On an iPad with iOS 6 GM. I have 6 UITextFields, 3 UITextViews, and a UIButton that triggers a popover/actionsheet.

When I select one of the UITextFields or UITextVie

7条回答
  •  一生所求
    2020-11-30 07:27

    This was originally an iPhone app built on iOS 5. To make it an iPad app, I just duplicated the project and upgraded all the .xibs to iPad versions. I don't know if it's a bug or not, or if it's something to do with the upgrade to iOS 6, but doing it like that messes something up with the MainWindow.xib.

    In the MainWindow xib, I typed in "MainViewController" for the title (It was previously blank.)

    enter image description here

    And checked off "Visible at Launch". Even though it is already visible at launch, not having that checked off screws something up.

    enter image description here

    Now all my text views and text fields work.

提交回复
热议问题