YCXMenu+Extension.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. //
  2. // YCXMenu+Extension.h
  3. // powerone
  4. //
  5. // Created by clouder on 2019/9/17.
  6. // Copyright © 2019 onecloud.ltd. All rights reserved.
  7. //
  8. #import "YCXMenu.h"
  9. NS_ASSUME_NONNULL_BEGIN
  10. @interface YCXMenu (Extension)
  11. /**
  12. 快捷创建一个YCXMenu,简单的封装
  13. @param target 按钮方法的对象一般传controller的self
  14. @param array 组成 dic = @{@"name":按钮名字,@"image":按钮icon,@"sel":方法名string}
  15. 其中image 可传UIImage,可传NSString即imageName
  16. */
  17. + (void)po_showMenuWithTarget:(id)target array:(NSArray *)array;
  18. + (void)po_showMenuWithTarget:(id)target array:(NSArray *)array location:(CGRect)loc;
  19. + (void)po_showMenuWithTarget:(id)target arrayParam:(NSArray *)array location:(CGRect)loc;
  20. /// <#Description#>
  21. /// @param target <#target description#>
  22. /// @param array <#array description#>
  23. /// @param loc <#loc description#>
  24. /// @param width <#width description#>
  25. + (void)po_showMenuWithTarget:(id)target arrayParam:(NSArray *)array location:(CGRect)loc itemWidth:(CGFloat)width;
  26. @end
  27. NS_ASSUME_NONNULL_END