看板 [ MacDev ]
討論串[問題] reloadRowsAtIndexPath exception
共 4 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓1(1推 0噓 6→)留言7則,0人參與, 最新作者peliuya (Unknown)時間11年前 (2013/11/04 17:33), 編輯資訊
0
0
1
內容預覽:
問題可能是出在 cellForRowAtIndexPath 內, 才有資料不同步的情況. cellForRowAtIndexPath. {. AlertThresholdCell *AlertCell= (AlertThresholdCell *). [tableView dequeueReusab
(還有788個字)

推噓2(2推 0噓 2→)留言4則,0人參與, 最新作者peliuya (Unknown)時間11年前 (2013/11/04 15:43), 編輯資訊
0
0
1
內容預覽:
感謝解說. 我把code改成. - (BOOL) textFieldShouldEndEditing:(UITextField *)textField. {. NSIndexPath *AlertPath = [NSIndexPath indexPathForRow:1 inSection:0];.
(還有326個字)

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者uranusjr (←這人是超級笨蛋)時間11年前 (2013/11/04 15:02), 編輯資訊
0
0
1
內容預覽:
當 textFieldShouldEndEditing 被呼叫時, text field 還沒有結束編輯. 這時候你還不能對包含它的 cell 進行 reload (正確來說應該是不能 remove). 不然程式就...嗯, 失去了 consistency. 解決方法是不要在 textFieldSh
(還有94個字)

推噓1(1推 0噓 0→)留言1則,0人參與, 最新作者peliuya (Unknown)時間11年前 (2013/11/04 14:29), 編輯資訊
0
0
0
內容預覽:
我有一個custom cell內包含了一個textField,. 我希望在該textField編輯結束後, 單獨更新該Cell. 以下是我的程式碼, 在編輯結束時. - (BOOL) textFieldShouldReturn:(UITextField *)textField. {. [textFi
(還有586個字)
首頁
上一頁
1
下一頁
尾頁