1
我想使用警報視圖接受密碼。以下是我正在使用的代碼。但我無法弄清楚爲什麼鍵盤彈出兩次而不是一次?有任何想法嗎?UIAlertView中的iPhone鍵盤彈出問題
UIAlertView *passwordAlert = [[UIAlertView alloc]
initWithTitle:@"Enter Password" message:@""
delegate:self cancelButtonTitle:@"Cancel"
otherButtonTitles:@"Submit",nil];
[passwordAlert addTextFieldWithValue:@"" label:@"Password"];
UITextField *textfield = [passwordAlert textFieldAtIndex:0];
textfield.secureTextEntry = YES;
[passwordAlert setTag:10];
[passwordAlert show];
感謝的人,是工作..! :-) – Neo 2009-02-10 12:12:58