我无法让双重显示在我的警报视图中。该字符串在 AlertView 中一直显示为 0。提前致谢!
double binRadius = [txtRadiusInches.text doubleValue] / 12 + [txtRadiusFeet.text doubleValue];
NSString *myString = [NSString stringWithFormat:@"%d", binRadius];
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Estimatated Amount"
message:myString
delegate:self
cancelButtonTitle:@"Continue"
otherButtonTitles:@"Clear All", nil];
[alert show];