I have two classes named InterfaceController and LoadInterfaceController.
I'm calling InterfaceController's uiChange function from my LoadInterfaceController:
InterfaceController *interfaceController = [InterfaceController alloc];
//[interfaceController performSelectorOnMainThread:@selector(uiChange) withObject:nil waitUntilDone:true];
[interfaceController uiChange];
The function is called, but the UI in InterfaceController isn't modified.
- (void)uiChange {
NSLog(@"uiChange was called");
//... make changes to the UI ...
}
If the function is called from a function originating from InterfaceController class the UI is changed, respectively.
I have tried calling uiChange on the main thread (as explained here), but the UI isn't responding. How may I specify the thread used for InterfaceController's UI?