У меня есть наблюдатель NSNotification
, который вызывается дважды. Я не знаю, что с ним делать.
Я искал его, но решения не найдено.
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(connectedToServer:) name:@"ConnectedToServer" object:nil];
- (void)connectedToServer:(NSNotification*)notification {
[[NSNotificationCenter defaultCenter] postNotificationName:@"SendMessageToServer" object:message];
}