I have A class and B class.
In B class I created function like:
-(void)conferance:(NSNotification *)notification {
[self conferanceConfirming:provisioningURL];
}
and in class A I am trying to call the function which is in class B in this way:
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(conferance:)name:nil object:nil];
But it doesn't work. any help appreciate.
in Class B you need to write
And from Class A you have to just call
"ConferanceNotification" is notication name, which is observed by class b. and then it will call registered selector as you define.