-2

I am using a storyboard, to create a View on which the user can enter data, like creating a contact.

I have tried placing some UITextFields on a view, but this way, I have the problem that there will be no scrolling when the iPhone is showing the keyboard at the bottom.

I hope someone can give me some hints about which controls I have to use to create a data entry form like the one for entering contacts in the iPhone.

jscs
  • 63,694
  • 13
  • 151
  • 195
BennoDual
  • 5,865
  • 15
  • 67
  • 153

2 Answers2

0

You have to use UITableView, with cell where you put UITextField's. When user tap on textField you have to register notify of keyboard appear (some hints there keyboard notification ) and change tableview frame to adjust to keyboard.

Community
  • 1
  • 1
edzio27
  • 4,126
  • 7
  • 33
  • 48
0

You need to place an UIScrollView to your UIView element and then you can add UITextField objects to the UIScrollView as you wish. After doing this, you need to make an IBOutlet property (e.g. scrollView) for your UIScrollView and link them.

Finally, set the content size of your UIScrollView in the viewDidLoad method. Something like this:

_scrollView.ContentSize = CGSizeMake(320.0, 640.0);

Please note that the first number means the width and the second means the height of your scroll view's content and you can change them depending of your wishes.

codeplasma
  • 515
  • 3
  • 6