説明なし

FloatDownView.h 855B

123456789101112131415161718192021222324252627282930313233343536373839
  1. //
  2. // FLRiseViewHelper.h
  3. // FirstLink
  4. //
  5. // Created by unicode on 14-11-18.
  6. // Copyright (c) 2014年 FirstLink. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import "FLViewController.h"
  10. typedef NS_ENUM(NSInteger, RiseViewType) {
  11. RiseViewTypeDefault,
  12. RiseViewTypeAutoClose,
  13. RiseViewTypeClickClose,
  14. RiseViewTypeClickMore,
  15. };
  16. static const CGFloat DOWN_COMMAND_HEIGHT = 30;
  17. @interface FloatDownCommand : NSObject
  18. @property (nonatomic, assign) RiseViewType type;
  19. @property (nonatomic, strong) NSString *content;
  20. @end
  21. @interface FloatDownView : UIView
  22. @property (nonatomic, strong) NSMutableArray *messageQueue;
  23. + (FloatDownView *)sharedInstance;
  24. - (void)prepareFloatDownViewFrame:(CGRect)frame inView:(UIView*)pView clickCallBack:(void (^)(id object))callBack;
  25. - (void)sendCommand:(FloatDownCommand*)command;
  26. @end