Run the method without delay

I have several methods inside my view controller that are loaded for future actions, I call them all within the same method, that is:

- (void) updateSongInformation {
     artistName.text = @"Testing";
     [self setupEmail];
     [self checkStatus];
}

If I take out the last 2 lines, UILabel is updated instantly. Is there a way to run the last 2 methods in the background so that the user does not linger?

+3
source share
1 answer

execute Selector: withObject: afterDelay: allows you to push calls to a later runloop loop.

, , , , , . , performSelector: withObject: afterDelay: .

+8

Source: https://habr.com/ru/post/1707566/


All Articles