QBPopupMenuItem.h 1009 B

123456789101112131415161718192021222324252627
  1. //
  2. // QBPopupMenuItem.h
  3. // QBPopupMenu
  4. //
  5. // Created by Tanaka Katsuma on 2013/11/22.
  6. // Copyright (c) 2013年 Katsuma Tanaka. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. @interface QBPopupMenuItem : NSObject
  10. @property (nonatomic, weak, readonly) id target;
  11. @property (nonatomic, assign, readonly) SEL action;
  12. @property (nonatomic, copy, readonly) NSString *title;
  13. @property (nonatomic, copy, readonly) UIImage *image;
  14. + (instancetype)itemWithTitle:(NSString *)title target:(id)target action:(SEL)action;
  15. + (instancetype)itemWithImage:(UIImage *)image target:(id)target action:(SEL)action;
  16. + (instancetype)itemWithTitle:(NSString *)title image:(UIImage *)image target:(id)target action:(SEL)action;
  17. - (instancetype)initWithTitle:(NSString *)title target:(id)target action:(SEL)action;
  18. - (instancetype)initWithImage:(UIImage *)image target:(id)target action:(SEL)action;
  19. - (instancetype)initWithTitle:(NSString *)title image:(UIImage *)image target:(id)target action:(SEL)action;
  20. @end