Create a method that updates the value of your subtitle and calls this method in the main thread. All changes related to the user interface must be part of the main thread.
[self performSelectorOnMainThread:<#(SEL)#> withObject:<#(id)#> waitUntilDone:<#(BOOL)#>]
-(void)updateValue
{
if(![NSThread isMainThread])
{
[self updateValue];
return;
}
update your values here.
}
source
share