Question: I have a simple table layout, in the one of the row, I have time for sun rise in a text view and I am trying to have sun with purple colour for the row as background. How can I achieve this? I tried creating an image 1000px x 500px with sun and purple background, However, it does not look good on different screen sizes. What is the solution for this?

Here is an image of what I am trying to achieve ![](https://i.imgur.com/rcjhYSE.png)

Answer: 
You can set it programmatically by 

```
[textField setSecureTextEntry:YES];

```

or in IB (secured checkbox at the bottom)

![enter image description here](https://i.stack.imgur.com/G8u20.png)
You could also try simply implementing your own "secure text field". 

Simply create a normal, non-secure text field, and link it's "Editing Changed" action with a method in your view controller. 

Then within that method you can take the new characters every time the text is changed, and add them to a private NSString property, and then set the textField's .text property to a string with just asterisks in it (or any other character if you prefer).

**Update:** as noted by *hayesk* below, this solution is no longer ideal, as the introduction of third-party keyboards exposes input on any non-secure text fields to the third-party application, risking them collecting that information, and/or adding it to the autocorrect database.