看板
[ MacDev ]
討論串[問題] reloadRowsAtIndexPath exception
共 4 篇文章
首頁
上一頁
1
下一頁
尾頁
內容預覽:
問題可能是出在 cellForRowAtIndexPath 內, 才有資料不同步的情況. cellForRowAtIndexPath. {. AlertThresholdCell *AlertCell= (AlertThresholdCell *). [tableView dequeueReusab
(還有788個字)
內容預覽:
感謝解說. 我把code改成. - (BOOL) textFieldShouldEndEditing:(UITextField *)textField. {. NSIndexPath *AlertPath = [NSIndexPath indexPathForRow:1 inSection:0];.
(還有326個字)
內容預覽:
當 textFieldShouldEndEditing 被呼叫時, text field 還沒有結束編輯. 這時候你還不能對包含它的 cell 進行 reload (正確來說應該是不能 remove). 不然程式就...嗯, 失去了 consistency. 解決方法是不要在 textFieldSh
(還有94個字)
內容預覽:
我有一個custom cell內包含了一個textField,. 我希望在該textField編輯結束後, 單獨更新該Cell. 以下是我的程式碼, 在編輯結束時. - (BOOL) textFieldShouldReturn:(UITextField *)textField. {. [textFi
(還有586個字)
首頁
上一頁
1
下一頁
尾頁