MenuAbleItem.h 546 B

1234567891011121314151617181920212223242526272829
  1. //
  2. // MenuAbleItem.h
  3. // CommonLibrary
  4. //
  5. // Created by Alexi on 14-1-16.
  6. // Copyright (c) 2014年 CommonLibrary. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. @protocol MenuAbleItem;
  10. typedef void (^MenuAction)(id<MenuAbleItem> menu);
  11. @protocol MenuAbleItem <NSObject>
  12. - (instancetype)initWithTitle:(NSString *)title icon:(UIImage *)icon action:(MenuAction)action;
  13. @optional
  14. - (NSString *)title;
  15. - (UIImage *)icon;
  16. - (void)menuAction;
  17. - (NSInteger)tag;
  18. - (void)setTag:(NSInteger)tag;
  19. @optional
  20. - (UIColor *)foreColor;
  21. @end