Tôi cố gắng để thực hiện thao tác này trên các chủ đề chính:performSelectorOnMainThread với nhiều tham số
[curItem.mButton setBackgroundImage:newArt forState:UIControlStateNormal];
Vì vậy, tôi làm điều này ...
cWrapperObject* obj = [cWrapperObject alloc];
[obj setupParams :curItem.mButton :newArt];
[obj performSelectorOnMainThread:@selector(setImageForButton) withObject:nil waitUntilDone:YES];
tôi cảm thấy như thế này là xấu, không ai có bất kỳ đề xuất về cách tôi có thể tiếp cận điều này một cách khác nhau?