9miao / CrossApp

Cross-Platform Mobile APP Development Engine
MIT License
838 stars 422 forks source link

CATextField/CATextView程序崩溃问题 #89

Open iniwf opened 9 years ago

iniwf commented 9 years ago

在CATextView、CATextField的onTextFieldAttachWithIME、getKeyBoardHeight等回调函数中调用其他类函数程序崩溃,比如说聊天对话框,输入文字后,TableView需要reloadData,在回调中调用的话会崩溃。如果改用CAScheduler::schedule去执行reloadData的话,程序不会崩溃,但有时候不会执行。

9miao commented 9 years ago

ok,查一下

9miao commented 9 years ago

已解决,这本来是个多线程问题,我们现在将代理返回改为了主线程,您的问题也就不复存在了