[問題] TextField 放入alert裡面導致鍵盤無法收回

看板MacDev作者 (殘羽星辰)時間15年前 (2010/09/18 17:48), 編輯推噓0(001)
留言1則, 1人參與, 最新討論串1/2 (看更多)
如題 -(BOOL) textFieldShouldReturn:(UITextField *) textField { [textField becomeFirstResponder]; //[(UIAlertView *)[textField superview] dismissWithClickedButtonIndex:1 animated:YES]; [myAlertView show]; return YES; //[accoutPassword resignFirstResponder]; //return YES; } 網路上是說textFieldShouldReturn:(UITextField *) textField就可以 但是測試發現alert裡面放下field以後叫出的鍵盤 似乎不適用這個function 因為按下retrun鍵無進入此function 好像是delegate的問題但不知如何修改delegate..... -- [請問] 吹風機插頭一直不拔會不會怎樣 推 eggimage:= = 建議千萬別這樣做..上次有人這樣 結果佔用一個插座.. 10/26 08:05 推 WhatCanIDo:樓上..然後呢@@ 10/26 08:07 推 eggimage:就少一個插座用 很不方便.. 10/26 08:08 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 203.64.76.136

09/26 15:43, , 1F
resignFirstResponder
09/26 15:43, 1F
文章代碼(AID): #1Cb8ht6j (MacDev)
文章代碼(AID): #1Cb8ht6j (MacDev)