SynchronizedUIActionSheetDemo icon indicating copy to clipboard operation
SynchronizedUIActionSheetDemo copied to clipboard

UI无响应

Open SonglinYu1230 opened this issue 6 years ago • 0 comments

下面这种方式调用会出现UI无响应的问题,麻烦有时间了帮忙看下。

    dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
        dispatch_async(dispatch_get_main_queue(), ^{
            SynchronizedUIActionSheet * synActionSheet = [[SynchronizedUIActionSheet alloc] init];
            synActionSheet.titles = [NSArray arrayWithObjects:@"aaa", @"bbb", @"ccc", @"ddd", nil];
            synActionSheet.destructiveButtonIndex = 1;
            synActionSheet.cancelButtonIndex = 3;
            NSUInteger result = [synActionSheet showInView:self.view];
            NSLog(@"result = %d", result);
        });
    });

SonglinYu1230 avatar Jun 02 '18 08:06 SonglinYu1230