Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7925765
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T18:26:51+00:00 2026-06-03T18:26:51+00:00

I tried using AwesomeMenu in my code, the one which is here: https://github.com/levey/AwesomeMenu It’s

  • 0

I tried using AwesomeMenu in my code, the one which is here:
https://github.com/levey/AwesomeMenu

It’s usage is very simple, as listed in the github page. I followed it as-is. But the menu is not appearing in the UI. Am using iOS 5.0 and Xcode 4.2, with iOS Simulator for testing.

This is what I did:

in my ViewController.h

...
#import "AwesomeMenu.h"
#import "AwesomeMenuItem.h"
...
// I included the AwesomeMenuDelegate here 
@interface com_FirstViewController : UIViewController <UITableViewDelegate,      UITableViewDataSource,AwesomeMenuDelegate> {
...
}
@property (nonatomic, retain) IBOutlet AwesomeMenu *awesomeMenu;
...

In the Storyboard
I have created a UIView instance, positioned & resized it where I want it to, changed its class to type ‘AwesomeMenu’, and linked its ‘Referencing Outlet’ to the IBOutlet property ‘awesomeMenu’.

In ViewController.m

...
@synthesize awesomeMenu;
...
AwesomeMenuItem *starMenuItem1;
AwesomeMenuItem *starMenuItem2;
...
...

// This method seems to be getting called, as I see the log messages
-(void) initializeSpringMenu {
    NSLog(@"InitializeSpringMenu: entered");
    UIImage *storyMenuItemImage = [UIImage imageNamed:@"GooglePlus.png"];
    UIImage *storyMenuItemImagePressed = [UIImage imageNamed:@"GooglePlus.png"];
    UIImage *starImage = [UIImage imageNamed:@"Mail-icon.png"];

    starMenuItem1 = [[AwesomeMenuItem alloc] 
                                    initWithImage:storyMenuItemImage
                                    highlightedImage:storyMenuItemImagePressed 
                                    ContentImage:starImage 
                                    highlightedContentImage:nil];
    starMenuItem2 = [[AwesomeMenuItem alloc] 
                                    initWithImage:storyMenuItemImage
                                    highlightedImage:storyMenuItemImagePressed 
                                    ContentImage:starImage 
                                    highlightedContentImage:nil];

    // Now, setup the menu and the options
    awesomeMenu = [[AwesomeMenu alloc] 
                initWithFrame:self.view.bounds 
                menus:[NSArray arrayWithObjects:starMenuItem1, starMenuItem2, nil]];
    awesomeMenu.delegate = self;
    NSLog(@"initializeSpringMenu: Done initializing it");
}


- (void)viewDidLoad {
    ...
    [self initializeSpringMenu];
    ...
}

I think it’s pretty straightforward & I don’t see what am missing here. Is it the bounds when doing an ‘init’ of AwesomeMenu? Can someone please help? The view appears blank in the UI when I run the App.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T18:26:53+00:00Added an answer on June 3, 2026 at 6:26 pm

    Jean,

    you need to add AwesomeMenu to your ViewController’s view. Modify the end of initializeSpringMenu as follows:

        .......
    
        // Now, setup the menu and the options
        awesomeMenu = [[AwesomeMenu alloc] 
                      initWithFrame:self.view.bounds 
                      menus:[NSArray arrayWithObjects:starMenuItem1, starMenuItem2, nil]];
        awesomeMenu.delegate = self;
    
        [self.view addSubView:awesomeMenu] // <-- THIS ADDS THE AWESOME VIEW TO YOUR VIEWCONTROLLERS VIEW
        NSLog(@"initializeSpringMenu: Done initializing it");
    }
    

    That should be all.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I tried using the code below to set up a contextmenu which only displays
I tried using the Google Document List API https://docs.google.com/feeds/default/private/full?max-results=100&showfolders=true for fetching list of all
I tried using the following code in .java(main activity): final ImageView diskView1 = (ImageView)
I tried using this: mvn dependency:get -DrepoUrl=http://myserver/artifactory -Dartifact=com.mypackage:my-package-name:1.0.0 However it just downloaded the pom.xml
I tried using .on instead, and delegate, none of them worked. (code works when
I tried using this code in this thread: How can I uninstall an application
I tried using Piston for a simple API, hoping to use its OAuth support.
Tried using the answer found here: How to run 'cd' in shell script and
I tried using the answer from here , but it did not work. I
I tried using this to display MIDI code on the console, found that memory

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.