1234567891011121314151617181920212223242526272829303132333435 |
- //
- // KSDragWindow.h
- // StudentDaya
- //
- // Created by 王智 on 2022/5/16.
- // Copyright © 2022 DayaMusic. All rights reserved.
- //
- #import <UIKit/UIKit.h>
- NS_ASSUME_NONNULL_BEGIN
- #define KSDragWindowWidth (KPortraitWidth / 4.0f)
- #define KSDragWindowHeight (KPortraitHeight / 4.0f)
- #define KSDragWindowHeightBottomSpace 40.0f
- #define KSDragWindowHeightRightSpace 0
- typedef NS_ENUM(NSInteger, DRAG_ACTION) {
- DRAG_ACTION_CLICK, // 返回详情
- DRAG_ACTION_CANCEL, // 取消
- };
- typedef void(^DragClickAction)(DRAG_ACTION action);
- @interface KSDragWindow : UIView // 替换成UIView
- @property (nonatomic, strong) UIView *containerView;
- @property (nonatomic, strong) UIButton *cancelButton;
- - (void)clickAction:(DragClickAction)callback;
- @end
- NS_ASSUME_NONNULL_END
|