Only the original thread that created a view hierarchy can touch its views.

記錄: 報錯:Only the original thread that created a view hierarchy can touch its views. 分析:更新UI 線程不安全。不在主線上 原因:觸發消息初始化來源於第三方框架的回調,爲子線程回調。 解決方案:在第三方回調處出使用handle來轉發更新UI消息。
相關文章
相關標籤/搜索