I have a need to display a UITableView
containing a user\'s account credentials. For this, I\'m using UILabels
in UITableViewCell
. Whe
Here's a way to do this, e.g., to display the password "dotted out" in a Prototype Cell's detailTextLabel:
// self.password is your password string
NSMutableString *dottedPassword = [NSMutableString new];
for (int i = 0; i < [self.password length]; i++)
{
[dottedPassword appendString:@"●"]; // BLACK CIRCLE Unicode: U+25CF, UTF-8: E2 97 8F
}
cell.detailTextLabel.text = dottedPassword;