Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 13th, 2012  |  syntax: None  |  size: 2.30 KB  |  hits: 30  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Unhiding a view is very slow in CTCallCenter callEventHandler
  2. - (void)ctCallStateDidChange:(NSNotification *)notification
  3. {
  4.    NSLog(@"121");
  5.    NSString *callInfo = [[notification userInfo] objectForKey:@"callState"];
  6.    if ([callInfo isEqualToString:CTCallStateDisconnected]) {
  7.       NSLog(@"before show");
  8.       [self.view viewWithTag:kNONEMERGENCYCALLSAVEDTOLOG_TAG].hidden = NO;
  9.       NSLog(@"after show");
  10.    }
  11. }
  12.        
  13. - (void)ctCallStateDidChange:(NSNotification *)notification
  14. {
  15.    NSLog(@"121");
  16.    NSString *callInfo = [[notification userInfo] objectForKey:@"callState"];
  17.    if ([callInfo isEqualToString:CTCallStateDisconnected]) {
  18.       NSLog(@"before show");
  19.       [self.view viewWithTag:kNONEMERGENCYCALLSAVEDTOLOG_TAG].hidden = NO;
  20.       NSLog(@"after show");
  21.    }
  22. }
  23.        
  24. - (void)ctCallStateDidChange:(NSNotification *)notification
  25. {
  26.    NSLog(@"121");
  27.    NSString *callInfo = [[notification userInfo] objectForKey:@"callState"];
  28.    if ([callInfo isEqualToString:CTCallStateDisconnected]) {
  29.       NSLog(@"before show");
  30.       [self.view viewWithTag:kNONEMERGENCYCALLSAVEDTOLOG_TAG].hidden = NO;
  31.       NSLog(@"after show");
  32.    }
  33. }
  34.        
  35. - (void)ctCallStateDidChange:(NSNotification *)notification
  36. {
  37.    NSLog(@"121");
  38.    NSString *callInfo = [[notification userInfo] objectForKey:@"callState"];
  39.    if ([callInfo isEqualToString:CTCallStateDisconnected]) {
  40.       NSLog(@"before show");
  41.       [self.view viewWithTag:kNONEMERGENCYCALLSAVEDTOLOG_TAG].hidden = NO;
  42.       NSLog(@"after show");
  43.    }
  44. }
  45.        
  46. - (void)ctCallStateDidChange:(NSNotification *)notification
  47. {
  48.    NSLog(@"121");
  49.    NSString *callInfo = [[notification userInfo] objectForKey:@"callState"];
  50.    if ([callInfo isEqualToString:CTCallStateDisconnected]) {
  51.       NSLog(@"before show");
  52.       [self.view viewWithTag:kNONEMERGENCYCALLSAVEDTOLOG_TAG].hidden = NO;
  53.       NSLog(@"after show");
  54.    }
  55. }
  56.        
  57. - (void)ctCallStateDidChange:(NSNotification *)notification
  58. {
  59.    NSLog(@"121");
  60.    NSString *callInfo = [[notification userInfo] objectForKey:@"callState"];
  61.    if ([callInfo isEqualToString:CTCallStateDisconnected]) {
  62.       NSLog(@"before show");
  63.       [self.view viewWithTag:kNONEMERGENCYCALLSAVEDTOLOG_TAG].hidden = NO;
  64.       NSLog(@"after show");
  65.    }
  66. }
  67.        
  68. dispatch_async(dispatch_get_main_queue(), ^{
  69.    [self.view viewWithTag:kNONEMERGENCYCALLSAVEDTOLOG_TAG].hidden = NO;
  70. });