我知道大多數人都會這樣做dispatchqueue.main.async,dispatch_async(dispatch_get_main_queue(), ^{但是從主執行緒呼叫 Objective C 的正確方法是什么?
具體來說,我想從查詢代碼中的主執行緒呼叫 textfieldview。
前任:
NSString *qry = [NSString stringWithFormat:
@"SELECT [ID] AS Identify "
" , Number AS Zeros "
" , Facils AS Buildings "
" FROM tableTod "
" WHERE Facils ='%@' "
, self.websiteTextField.text
];
uj5u.com熱心網友回復:
回答:
我通過實作調度異步代碼找到了解決方案。這不是 SQL 注入。謝謝。
轉載請註明出處,本文鏈接:https://www.uj5u.com/qianduan/382081.html
