很简单,如下:

1
textField.secureTextEntry = YES;