开发者

How can I change a label when other labels change?

开发者 https://www.devze.com 2023-04-08 15:38 出处:网络
I am trying to make a label change when other 2 labels change. The 2 labels constantly change randomly.

I am trying to make a label change when other 2 labels change. The 2 labels constantly change randomly.

Here's the code:if ([labes.text 开发者_开发问答isEqualToString:@"haha"] && [alizz.text isEqualToString:@"hoho"]) { laab.text = @"hello"; }

Maybe refreshing every 0.0005 seconds will work?


How you are changing other two labels? you can add some function that update you third label just after updating the other two.


You Can try nstimer for call method in time intervel.

0

精彩评论

暂无评论...
验证码 换一张
取 消