I use something similar to android toast to send messages to the user.
This toast is shown in the current view, in this case I want to change the view, and there is no time to read the message.
So, I use a thread to stay in the current view for 3 seconds, but the toast is also delayed.
[theHoleView makeToast:@"OK!!" duration:3 position:@"center" image:[UIImage imageNamed:@"nocorrect.png"]];
[NSThread sleepForTimeInterval:3];
[self.navigationController popToRootViewControllerAnimated:YES];
I execute NSThread after the Toast, why is the toast delayed?
Thank you in advance