Send public Message with storyboard
Posted: 11 Dec 2013, 15:21
I'm having a problem with the simpleChat example. While the example uses xib's and I am using the storyboard I believe this is where my problem is.
- (void)onPublicMessage:(SFSEvent *)evt
{
NSLog(@"AppDelegate::onPublicMessage");
ChatViewController * cvc = (ChatViewController *)_viewController;
if ([cvc respondsToSelector:@selector(onPublicMessage:)])
{
[cvc onPublicMessage:evt];
}
}
The onPublicMessage event method in the appDelegate is called when i debug however it never is called on the chatViewController. So my scrollView never has the messages loaded.
- (void)onPublicMessage:(SFSEvent *)evt
{
NSLog(@"AppDelegate::onPublicMessage");
ChatViewController * cvc = (ChatViewController *)_viewController;
if ([cvc respondsToSelector:@selector(onPublicMessage:)])
{
[cvc onPublicMessage:evt];
}
}
The onPublicMessage event method in the appDelegate is called when i debug however it never is called on the chatViewController. So my scrollView never has the messages loaded.