9 #import <Foundation/Foundation.h> 25 @protocol PopoverMenuDelegate <NSObject>
27 - (void)popoverMenuDidDismissPopover:(
PopoverMenu *)popoverMenu;
28 - (void)menuItemClicked:(
PopoverMenu *)popoverMenu index:(NSInteger)index;
32 @class PopoverMenuItem;
33 @class PopoverMenuController;
40 UIPopoverController *popOver;
41 UIViewController* contentsViewController;
42 UIActionSheet *actionSheet;
44 id<PopoverMenuDelegate> __weak delegate;
45 Class popoverMenuControllerClass;
48 @property (nonatomic, strong) NSMutableArray *menuItems;
49 @property (nonatomic, weak) id<PopoverMenuDelegate> delegate;
50 @property (nonatomic, readonly) PopoverMenuController *popoverMenuController;
51 @property (readonly)
BOOL isPopoverVisible;
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;
signed char BOOL
Definition: PDCwtypes.h:101