NAMenu icon indicating copy to clipboard operation
NAMenu copied to clipboard

How to pass params to target class ?

Open sharp opened this issue 13 years ago • 1 comments

NAMenuItem *item = [[[NAMenuItem alloc] initWithTitle:vc.name
                                                       image:[UIImage imageNamed:@"hd.png"]
                                                       vcClass:[VideosListViewController class]] autorelease];



Can I pass some params to VideosListViewController ?

sharp avatar Oct 16 '12 02:10 sharp

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.

camsaul avatar Oct 16 '12 17:10 camsaul