Mobile API Reference  MicroStrategy 2019
PopoverMenu.h
Go to the documentation of this file.
1 //
2 // PopoverMenu.h
3 // MicroStrategyMobile
4 //
5 // Created by Yongli Jiang on 1/5/12.
6 // Copyright (c) 2012 MicroStrategy Inc. All rights reserved.
7 //
8 
9 #import <Foundation/Foundation.h>
10 
11 extern NSString* const MSIPopoverMenuDidDismissNotification;
12 
18 typedef enum EnumPopoverMenuStyle {
22 
23 @class PopoverMenu;
24 
25 @protocol PopoverMenuDelegate <NSObject>
26 
27 - (void)popoverMenuDidDismissPopover:(PopoverMenu *)popoverMenu;
28 - (void)menuItemClicked:(PopoverMenu *)popoverMenu index:(NSInteger)index;
29 
30 @end
31 
32 @class PopoverMenuItem;
33 @class PopoverMenuController;
34 
35 @interface PopoverMenu : NSObject {
36 @protected
37  NSMutableArray *menuItems;
39 @private
40  UIPopoverController *popOver;
41  UIViewController* contentsViewController;
42  UIActionSheet *actionSheet;
44  id<PopoverMenuDelegate> __weak delegate;
45  Class popoverMenuControllerClass;
46 }
47 
48 @property (nonatomic, strong) NSMutableArray *menuItems;
49 @property (nonatomic, weak) id<PopoverMenuDelegate> delegate;
50 @property (nonatomic, readonly) PopoverMenuController *popoverMenuController;
51 @property (readonly) BOOL isPopoverVisible;
52 
53 - (id)initWithPopoverMenuControllerClass:(Class)controllerClass;
54 - (void)addMenuItem:(PopoverMenuItem *)menuItem atIndex:(NSInteger)index;
55 - (void)appendMenuItem:(PopoverMenuItem *)menuItem;
56 - (void)showFromBarButtonItem:(UIBarButtonItem *)item permittedArrowDirections:(UIPopoverArrowDirection)direction animated:(BOOL)animated;
57 - (void)showFromRect:(CGRect)rect inView:(UIView *)view permittedArrowDirections:(UIPopoverArrowDirection)direction animated:(BOOL)animated;
58 - (void)repromptFromBarButtonItem:(UIBarButtonItem *)item permittedArrowDirections:(UIPopoverArrowDirection)direction animated:(BOOL)animated;
59 - (void)repromptFromRect:(CGRect)rect inView:(UIView *)view permittedArrowDirections:(UIPopoverArrowDirection)direction animated:(BOOL)animated;
60 - (void)dismissPopoverMenu;
61 - (void)adjustStartingBarButtonItem:(UIBarButtonItem *)item;
62 @end
signed char BOOL
Definition: PDCwtypes.h:101
NSString *const MSIPopoverMenuDidDismissNotification
enum EnumPopoverMenuStyle PopoverMenuStyle
NSMutableArray * menuItems
Definition: PopoverMenu.h:37
PopoverMenuStyle style
Definition: PopoverMenu.h:38
Definition: PopoverMenu.h:19
BOOL isPopoverVisible
Definition: PopoverMenu.h:43
Definition: PopoverMenu.h:20
Definition: PopoverMenu.h:35
EnumPopoverMenuStyle
Definition: PopoverMenu.h:18