0
Je suis en train de faire le développement d'un objectif-c (iOS). Puis-je savoir comment je vais changer le fuseau horaire par défaut de GMT +0 à GMT +8. GMT +8 est pour Singapour.Changement de fuseau horaire
Voici mon code:
- (IBAction)dateChanged {
NSDate *choice = [datePick date];
NSString *words = [NSString alloc initWithFormat:@"%@", choice];
NSDateFormatter *dateFormat = [[NSDateFormatter alloc] init];
[dateFormat setDateFormat:@"yyyy-MM-dd HH:mm:ss"];
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"You have selected:" message:words delegate:nil cancelButoonTitle:@"OK" otherBUttonTitles:nil, nil];
[alert show];
[alert release];
[words release];
}
Merci.