XavierDK / XDKAirMenu

iOs Menu like the FIFA app
MIT License
122 stars 27 forks source link

Push Notifications to call specific View of airMenu #3

Closed brbgyn closed 10 years ago

brbgyn commented 10 years ago

Hi, i'm having some headaches with this push notifications...

Every thing is working great now with push notifications, but one thing:

I made a Chat for users.. When users say something, everyone gets a push informing there is a new message... What i want to do is when the user touches the Push Notification, the apps opens directly in the ChatViewControlle....

I'm using appDelegate to call homeViewController, and homeViewController calls chatViewControler thru the method:

How can i call chatViewController directly from appDelegate, but passing thru the airMenu, so that the "openMenuAnimated" method still works to come back to homeViewController ?

Thanks in advance

brbgyn commented 10 years ago

SOLVED:

in homeViewController:

XDKAirMenuController menuCtr = [XDKAirMenuController sharedMenu]; NSIndexPath linha = [NSIndexPath indexPathForRow:6 inSection:0]; [((id)menuCtr) tableView:tableView didSelectRowAtIndexPath:linha];