修改聊天闪退

This commit is contained in:
启星
2025-12-06 16:55:26 +08:00
parent 9f8a36544b
commit 16c8869961
12 changed files with 288 additions and 15 deletions

View File

@@ -0,0 +1,32 @@
//
// QXHapticManager.h
// QXLive
//
// Created by 启星 on 2025/12/5.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface QXHapticManager : NSObject
+ (instancetype)shared;
// 检查是否支持触觉反馈
+ (BOOL)isHapticFeedbackSupported;
// 各种触觉反馈方法
- (void)impactWithStyle:(UIImpactFeedbackStyle)style;
- (void)impactMedium;
- (void)notificationWithType:(UINotificationFeedbackType)type;
- (void)selectionChanged;
// 带准备的触觉反馈
- (void)prepareImpactWithStyle:(UIImpactFeedbackStyle)style;
- (void)triggerPreparedImpact;
@end
NS_ASSUME_NONNULL_END