Yuvaraj.M
Yuvaraj.M

Reputation: 9811

How to add UITextField,UITextView,UILabel and UIButton in UITableview like forms iphone?

In my iphone application there is 4 forms. These forms are having UITextField, UITextView, UILabel and UIButton. Currently i placed these items in UIScrollView. But, now my client want the forms look like 'iPhone Settings app'. How can i place the UITextView,UITextField, UILabel and UIButton in UITableView? The user need to enter their details in this forms, the tableview should move up when the user click the UITextField in bottom. How can do this? Please suggest me any sample code/ ideas? Thanks in advance.

Upvotes: 0

Views: 504

Answers (1)

Fabio Napodano
Fabio Napodano

Reputation: 1249

UITableViewCell has a view called contentView.
Use [cell.contentView addSubview:yourView] to add the items to your cell.

Upvotes: 0

Related Questions