[問題] TextField 放入alert裡面導致鍵盤無法收回
如題
-(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
09/26 15:43, 1F
討論串 (同標題文章)
完整討論串 (本文為第 1 之 2 篇):
MacDev 近期熱門文章
PTT數位生活區 即時熱門文章