0
我希望到文本輸入掩碼,UITextFiled
爲:掩蓋密碼輸入到UITexfield
"ABCDE" to
"*****"
下面
是我沒有的功能代碼
- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string
{
int l=[textField.text length];
range=NSMakeRange(1, l);
string=[[[NSString alloc]initWithString:@"*"] autorelease];
return YES;
}