1. [password setSecureTextEntry:YES];
2. 在XIB中拖入一个 TextField ,在Attributes Inspecter 中把 Secure 那个chekbox给勾上