removeFromSuperview doesn't work

后端 未结 3 857
灰色年华
灰色年华 2021-02-20 01:29

I need to be able to remove a button from a view and add a different one. My code looks like this:

-(void)UpdatePromoBanner:(NSString*)value{
    [button setTitl         


        
3条回答
  •  被撕碎了的回忆
    2021-02-20 01:46

    You cannot update the UI using a secondary thread, whenever your thread is doing UI updates you must call the main thread.

提交回复
热议问题