Skip to content
This repository was archived by the owner on Feb 19, 2019. It is now read-only.
This repository was archived by the owner on Feb 19, 2019. It is now read-only.

CommandMaster not displaying #1

@BlackMarq20

Description

@BlackMarq20

Hi,

I followed the sample project and tried to add the command master to my view, however it does not display.

I have a viewcontroller, which has another view controller as a child. I tried adding the commandMaster as the last item in viewDidLoad. It appears to be in the hierarchy, if I print it out, however it doesn't display on the screen.

In the app delegate I have the following code:

    [AMCommandMaster addButtons:@[[AMCommandButton createButtonWithImage:[UIImage imageNamed:@"saveIcon"] andTitle:@"save" andMenuListItems:@[@"menu item 1", @"menu item 2", @"menu item 3"]],
    [AMCommandButton createButtonWithImage:[UIImage imageNamed:@"deleteIcon"] andTitle:@"delete"],
    [AMCommandButton createButtonWithImage:[UIImage imageNamed:@"help"] andTitle:@"help"],
    [AMCommandButton createButtonWithImage:[UIImage imageNamed:@"settings"] andTitle:@"settings"]]
    forGroup:@"TestGroup"];

In the viewController viewDidLoad, I have the following:
[AMCommandMaster setDelegate:self];
[AMCommandMaster addToView:self.view andLoadGroup:@"TestGroup"];

any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions