IOS how to update UITableViewCell

前端 未结 2 2035
南方客
南方客 2021-01-15 11:29

i make a custom UITableViewCell:

 SListViewCell * cell = nil;
//    cell = [listView dequeueReusableCellWithIdentifier:CELL];
if (!cell) {
    cell = [[[SLis         


        
2条回答
  •  执笔经年
    2021-01-15 12:01

    Any UI updates can only occur on the main thread. I don't think you should update UITableViewCell in another thread.

    From Apple doc:

    Manipulations to your application’s user interface must occur on the main thread. Thus, you should always call the methods of the UIView class from code running in the main thread of your application. The only time this may not be strictly necessary is when creating the view object itself but all other manipulations should occur on the main thread.

提交回复
热议问题