LeoNatan / LNNotificationsUI

A framework for displaying notifications similar to Apple's iOS 8 and iOS 9 notifications.
MIT License
787 stars 115 forks source link

have a doubt in LNNotificationbannerwindow #55

Closed solarisis closed 7 years ago

solarisis commented 7 years ago

you have a user tapped function which can be used to stop sound etc.. I am wondering if I can instantiate a view controller from this function... as in when I click the notification I should be able to navigate to another window .. how to achieve this?

LeoNatan commented 7 years ago

I am sorry, I don’t understand the problem or the title.

solarisis commented 7 years ago

u have a function called

// UIStoryboard storyboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil]; // UIViewController viewController; // viewController = [storyboard instantiateViewControllerWithIdentifier:@"PushVC"]; // self.window.rootViewController = viewController; // [self.window makeKeyAndVisible];

}

how do I push a view controller when I click on this notification..

LeoNatan commented 7 years ago

This is internal framework API. You should be providing an action.

See: https://github.com/LeoNatan/LNNotificationsUI/blob/master/LNNotificationsUI/LNNotificationsUI/LNNotification.h

Also, take a look at the example project.