- Unhiding a view is very slow in CTCallCenter callEventHandler
- - (void)ctCallStateDidChange:(NSNotification *)notification
- {
- NSLog(@"121");
- NSString *callInfo = [[notification userInfo] objectForKey:@"callState"];
- if ([callInfo isEqualToString:CTCallStateDisconnected]) {
- NSLog(@"before show");
- [self.view viewWithTag:kNONEMERGENCYCALLSAVEDTOLOG_TAG].hidden = NO;
- NSLog(@"after show");
- }
- }
- - (void)ctCallStateDidChange:(NSNotification *)notification
- {
- NSLog(@"121");
- NSString *callInfo = [[notification userInfo] objectForKey:@"callState"];
- if ([callInfo isEqualToString:CTCallStateDisconnected]) {
- NSLog(@"before show");
- [self.view viewWithTag:kNONEMERGENCYCALLSAVEDTOLOG_TAG].hidden = NO;
- NSLog(@"after show");
- }
- }
- - (void)ctCallStateDidChange:(NSNotification *)notification
- {
- NSLog(@"121");
- NSString *callInfo = [[notification userInfo] objectForKey:@"callState"];
- if ([callInfo isEqualToString:CTCallStateDisconnected]) {
- NSLog(@"before show");
- [self.view viewWithTag:kNONEMERGENCYCALLSAVEDTOLOG_TAG].hidden = NO;
- NSLog(@"after show");
- }
- }
- - (void)ctCallStateDidChange:(NSNotification *)notification
- {
- NSLog(@"121");
- NSString *callInfo = [[notification userInfo] objectForKey:@"callState"];
- if ([callInfo isEqualToString:CTCallStateDisconnected]) {
- NSLog(@"before show");
- [self.view viewWithTag:kNONEMERGENCYCALLSAVEDTOLOG_TAG].hidden = NO;
- NSLog(@"after show");
- }
- }
- - (void)ctCallStateDidChange:(NSNotification *)notification
- {
- NSLog(@"121");
- NSString *callInfo = [[notification userInfo] objectForKey:@"callState"];
- if ([callInfo isEqualToString:CTCallStateDisconnected]) {
- NSLog(@"before show");
- [self.view viewWithTag:kNONEMERGENCYCALLSAVEDTOLOG_TAG].hidden = NO;
- NSLog(@"after show");
- }
- }
- - (void)ctCallStateDidChange:(NSNotification *)notification
- {
- NSLog(@"121");
- NSString *callInfo = [[notification userInfo] objectForKey:@"callState"];
- if ([callInfo isEqualToString:CTCallStateDisconnected]) {
- NSLog(@"before show");
- [self.view viewWithTag:kNONEMERGENCYCALLSAVEDTOLOG_TAG].hidden = NO;
- NSLog(@"after show");
- }
- }
- dispatch_async(dispatch_get_main_queue(), ^{
- [self.view viewWithTag:kNONEMERGENCYCALLSAVEDTOLOG_TAG].hidden = NO;
- });