How to pass params to target class ?
NAMenuItem *item = [[[NAMenuItem alloc] initWithTitle:vc.name
image:[UIImage imageNamed:@"hd.png"]
vcClass:[VideosListViewController class]] autorelease];
Can I pass some params to VideosListViewController ?
There's a few things I would recommend you do. One is tweak the menu to follow the delegate pattern (have it ask for each item, just like a table view). Not 100% sure but I think someone might have done this in a fork on GitHub. Another option would to store the "current" object in some central location be have your ViewController grab it. Not necessarily your AppDelegate but perhaps a class owned by it.
On Mon, Oct 15, 2012 at 7:12 PM, SharpX [email protected] wrote:
NAMenuItem *item = [[[NAMenuItem alloc] initWithTitle:vc.name image:[UIImage imageNamed:@"hd.png"] vcClass:[VideosListViewController class]] autorelease];
Can I pass some params to VideosListViewController ?
— Reply to this email directly or view it on GitHubhttps://github.com/cammsaul/NAMenu/issues/2.