J'écris un code pour obtenir des valeurs, y compris bien sûrvaleur de cours comparant l'iPhone problème pour cllocation
-(void) locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation {
//somecode
NSString *dirString = [[NSString alloc] initWithFormat:@"%d", newLocation.course];
int myInt = [dirString intValue];
if ((myInt >= 0) || (myint < 90)) {course.text [email protected] "N";}
if ((myInt >= 90) || (myint < 180)) {course.text [email protected] "E";}
et ainsi de suite, mais je récupérer toujours la première valeur, « N ».
où est mon erreur?
Merci!
de jasarien de remerciement, shure, j'ai compris cette erreur – zebra