Inherits from UIViewController
Declared in SCPopupMenu.h

Overview

Presents a standard C2Call SDK Popup Menu.

SCPopupMenu is a convenient PopMenu Control to show menu choices in any ViewController.

Example Code: SCPopupMenu *cv = [SCPopupMenu popupMenu:self];

[cv addChoiceWithName:NSLocalizedString(@"Forward", @"MenuItem") andSubTitle:NSLocalizedString(@"Forward to another FriendCaller user", @"Button") andIcon:[UIImage imageNamed:@"ico_forward"] andCompletion:^{
    [self forwardMessage:nil];
}];

[cv addCancelWithName:NSLocalizedString(@"Cancel", @"Button") andCompletion:^{

}];
[cv showMenu];

Class Methods

popupMenu:

Creates an Instance of SCPopupMenu.

+ (SCPopupMenu *)popupMenu:(id)parent

Parameters

parent
  • Presenting ViewController

Declared In

SCPopupMenu.h

Instance Methods

addCancelWithName:andCompletion:

Shows a Cancel Button as part of the PopupMenu.

- (void)addCancelWithName:(id)name andCompletion:(id)completion

Parameters

name
  • Name of the Button (e.g. @“Cancel”)
completion
  • The Block executed on Button Click

Declared In

SCPopupMenu.h

addChoiceWithName:andSubTitle:andIcon:andCompletion:

Shows a Menu Choice with Name, Subtitle and Icon as part of the PopupMenu.

- (void)addChoiceWithName:(id)name andSubTitle:(id)subTitle andIcon:(id)icon andCompletion:(id)_completion

Parameters

name
  • The Choice Name
subTitle
  • Sub Title to the Choice Name (optional)
icon
  • The Choice Icon (optional)
completion
  • The Block executed on Button Click

Declared In

SCPopupMenu.h

hideMenu:

Hides PopupMenu with completion handler.

- (void)hideMenu:(id)_completion

Parameters

completion
  • The Block executed on hide

Discussion

For internal use…

Declared In

SCPopupMenu.h

showMenu

Shows PopupMenu.

- (void)showMenu

Declared In

SCPopupMenu.h