Ver código fonte

bro just async

pull/1/head
Burrit0z 4 anos atrás
pai
commit
028d4a4846
2 arquivos alterados com 3 adições e 1 exclusões
  1. +1
    -1
      KAIBattery.mm
  2. +2
    -0
      Kai.xm

+ 1
- 1
KAIBattery.mm Ver arquivo



} else if(!shouldAdd) { } else if(!shouldAdd) {
dispatch_async(dispatch_get_main_queue(), ^{ dispatch_async(dispatch_get_main_queue(), ^{
[cell removeFromSuperview];
[cell removeFromSuperview];
}); });
} }
} }

+ 2
- 0
Kai.xm Ver arquivo

isUpdating = YES; isUpdating = YES;


//NSLog(@"kai: kai info will update"); //NSLog(@"kai: kai info will update");
dispatch_async(dispatch_get_main_queue(), ^{


[[KAIBattery sharedInstance] updateBattery]; [[KAIBattery sharedInstance] updateBattery];
[self KaiUpdate]; [self KaiUpdate];


isUpdating = NO; isUpdating = NO;
});


/*isUpdating = YES; /*isUpdating = YES;
[UIView animateWithDuration:0.3 animations:^{ [UIView animateWithDuration:0.3 animations:^{

Carregando…
Cancelar
Salvar