Skip to content
This repository was archived by the owner on Jul 2, 2019. It is now read-only.
This repository was archived by the owner on Jul 2, 2019. It is now read-only.

再次发送语音时,不会弹出录音界面,则录音还在继续 #420

@ashen-zhao

Description

@ashen-zhao

Base Info for this issue

  1. ChatKit Version:v0.8.5
  2. App-ID: XX
  3. Language:Objective-C
  4. iOS System Version:iOS12
  5. Prototype(是否是真机):YES
  6. Issue Type:Crash、Bug、Enhancement(希望能支持一个新需求)、Q-A

1. How to repeat the problem.

发送语音时,第一次会弹出录音倒计时,再此录音则不会弹出倒计时弹框,而录音在继续进行;

2. Please help me in this way.

我发现在这个LCCKProgressHUD.m 中的 109-117行的代码,我注释掉,就可以正常录音,不知道这里的代码有何用处;
尤其是这里 [windows removeObject:self.overlayWindow]; 为什么移除一个新建的对象,而对象没有使用。
代码如下:
NSMutableArray *windows = [[NSMutableArray alloc] initWithArray:[UIApplication sharedApplication].windows];
[windows removeObject:self.overlayWindow];

                             [windows enumerateObjectsWithOptions:NSEnumerationReverse usingBlock:^(UIWindow *window, NSUInteger idx, BOOL *stop) {
                                 if([window isKindOfClass:[UIWindow class]] && window.windowLevel == UIWindowLevelNormal) {
                                     [window makeKeyWindow];
                                     *stop = YES;
                                 }
                             }];

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions