refactor: Use updated API to retrieve seismics
This commit is contained in:
+4
-4
@@ -41,13 +41,13 @@
|
||||
UILabel *data = (UILabel *)[self viewWithTag:6];
|
||||
|
||||
int tempo = 0;
|
||||
if ([self.sisma.differenza intValue] > 60) {
|
||||
if ([self.sisma.difference intValue] > 60) {
|
||||
|
||||
tempo = [self.sisma.differenza intValue]/60;
|
||||
data.text = [NSString stringWithFormat:@"%@ %@",NSLocalizedString(@"Data(Ora tua):", @"") , [NSString stringWithFormat:@"%@ - %d %@", self.sisma.data, tempo, NSLocalizedString(@"ore fa", @"")]];
|
||||
tempo = [self.sisma.difference intValue]/60;
|
||||
data.text = [NSString stringWithFormat:@"%@ %@",NSLocalizedString(@"Data(Ora tua):", @"") , [NSString stringWithFormat:@"%@ - %d %@", self.sisma.date, tempo, NSLocalizedString(@"ore fa", @"")]];
|
||||
}else{
|
||||
|
||||
data.text = [NSString stringWithFormat:@"%@ %@",NSLocalizedString(@"Data(Ora tua):", @"") , [NSString stringWithFormat:@"%@ - %@ %@", self.sisma.data, self.sisma.differenza, NSLocalizedString(@"minuti fa", @"")]];
|
||||
data.text = [NSString stringWithFormat:@"%@ %@",NSLocalizedString(@"Data(Ora tua):", @"") , [NSString stringWithFormat:@"%@ - %@ %@", self.sisma.date, self.sisma.difference, NSLocalizedString(@"minuti fa", @"")]];
|
||||
}
|
||||
|
||||
// UILabel *dataValue = (UILabel *)[self viewWithTag:8];
|
||||
|
||||
Reference in New Issue
Block a user