In my multi-tab app a thread cares about listening for messages coming from the server and it must be able to close a UIImagePickerController in case the camera is active while a specific message is received. The thread is run through NSThread detachNewThreadSelector.In my multi-tab app a thread cares about listen