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