Conversion Fahrenheit to celsius programmatically
- by Doom
In my project, want to show the weather in fahrenheit first, then if the user wants clickes on conversion, needs to show the weather in celsius. My code is
NSNumber *metric = [[NSUserDefaults standardUserDefaults] objectForKey:@"metric"];
NSLog(@"Metric is %@", metric);
CGFloat aFloat = [speed floatValue];
CGFloat tFloat = [temperature…