adit
adit

Reputation: 33654

custom UITextField in iOS phone book

How do I create something like this:

enter image description here

This is taken from the iOS contacts app. I assume there should be away to re-create it as well.

Upvotes: 1

Views: 319

Answers (4)

JOM
JOM

Reputation: 8207

That looks like a grouped UITableView using a UITableViewCell with UITableViewCellStyleValue2. More info at Apple documentation for tables.

Upvotes: 0

iPatel
iPatel

Reputation: 47089

In your case You need to take Two element

1) UILabel with text color Blue
2) UITextField with PlaceHolder text = @"Phone"

And this element add in cell.contentView with it's fram as you need.

also you need to add Line image in between UILabel and UITextField and add this image in cell.contentView

Upvotes: 1

Sharon Nathaniel
Sharon Nathaniel

Reputation: 1467

Its easy to re-create, just take create custom UITableViewCell with a UILabel,a separator as UIImageView and a UITextField with border style as UITextBorderStyleNone and placeholder with your text.

THis is how it looks

Upvotes: 1

Rushi
Rushi

Reputation: 4500

enter image description here

  1. Take Green Box as one image.
  2. Add One UITextField as shown in Red box with Placeholder Phone.

Upvotes: 1

Related Questions