MMSheetView.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. //
  2. // MMSheetView.h
  3. // MMPopupView
  4. //
  5. // Created by Ralph Li on 9/6/15.
  6. // Copyright © 2015 LJC. All rights reserved.
  7. //
  8. #import "MMPopupView.h"
  9. #import "MMPopupDefine.h"
  10. @interface MMSheetView : MMPopupView
  11. - (instancetype) initWithTitle:(NSString*)title
  12. items:(NSArray*)items;
  13. @end
  14. /**
  15. * Global Configuration of MMSheetView.
  16. */
  17. @interface MMSheetViewConfig : NSObject
  18. + (MMSheetViewConfig*) globalConfig;
  19. @property (nonatomic, assign) CGFloat buttonHeight; // Default is 50.
  20. @property (nonatomic, assign) CGFloat innerMargin; // Default is 19.
  21. @property (nonatomic, assign) CGFloat titleFontSize; // Default is 14.
  22. @property (nonatomic, assign) CGFloat buttonFontSize; // Default is 17.
  23. @property (nonatomic, strong) UIColor *backgroundColor; // Default is #FFFFFF.
  24. @property (nonatomic, strong) UIColor *titleColor; // Default is #666666.
  25. @property (nonatomic, strong) UIColor *splitColor; // Default is #CCCCCC.
  26. @property (nonatomic, strong) UIColor *itemNormalColor; // Default is #333333. effect with MMItemTypeNormal
  27. @property (nonatomic, strong) UIColor *itemDisableColor; // Default is #CCCCCC. effect with MMItemTypeDisabled
  28. @property (nonatomic, strong) UIColor *itemHighlightColor; // Default is #E76153. effect with MMItemTypeHighlight
  29. @property (nonatomic, strong) UIColor *itemPressedColor; // Default is #EFEDE7.
  30. @property (nonatomic, strong) NSString *defaultTextCancel; // Default is "取消"
  31. @end