Keyboard hides UITextField... Suggestions?

Discussion in 'iOS Programming' started by Soulstorm, Jun 4, 2009.

  1. Soulstorm macrumors 68000

    Soulstorm

    Joined:
    Feb 1, 2005
    #1
    I have a UIView which has a uitextField inside. When the user clicks on it, the keyboard comes up, and the text field is being hidden! That way, the user has no way of seeing what he/se writes on the text field.

    Any way of bypassing this using some kind of zooming in the text field or designing it another way?
     
  2. johnnyjibbs macrumors 68030

    johnnyjibbs

    Joined:
    Sep 18, 2003
    Location:
    London, UK
    #2
    Add your text field as a subview of a UIScrollView and then scroll the scroll view (containing the text field) up programmatically when the text field begins editing (in UITextFieldDelegate's textFieldDidStartEditing method).

    You can also use a UITableView instead of a UIScrollView if appropriate for your UI. (UITableView inherits from UIScrollView).
     

Share This Page