I am creating a feedback form in an ios7 application and want to place few UITextFields which contain hints in the respective UITextField for name, phone number, email address, etc. I am using xcode 5 and ios7 for programming and creating application without use of storyboard.
The hint property is available in android for edit text field, but I am unable to find any such property in UITextField in ios 7.
Make use of the Placeholder text property.
Here's an example:
If you are using a storyboard or XIB, this property can be edited there also.
Also, if you want to use custom attributes for the placeholder, you can use the
attributedPlaceholderproperty: