Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Do I need to use @synchronized when calling UITableView reloadData method?

I have many threads calling UITableView's reloadData method concurrently. Do I actually have to put a @synchronized block around it?

like image 804
ikevin8me Avatar asked Dec 27 '22 16:12

ikevin8me


1 Answers

You shouldn't call reloadData from threads other than the main thread.

See this similar question:

iOS - another thread needs to send reloadData to the mainthread

like image 51
TomSwift Avatar answered Jan 21 '23 18:01

TomSwift