Created
February 12, 2014 21:21
-
-
Save jwhitehorn/8964793 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (id)valueForField:(NSString *)field | |
{ | |
if ([field isEqualToString:@"in_currency"]) { | |
return [[_inCurrencyData objectAtIndex:[inCurrencyPicker selectedRowInComponent:0]] objectForKey:@"code"]; | |
} else if ([field isEqualToString:@"out_currency"]) { | |
return [[_outCurrencyData objectAtIndex:[outCurrencyPicker selectedRowInComponent:0]] objectForKey:@"code"]; | |
} else if ([field isEqualToString:@"in_amount"]) { | |
return [inAmount text]; | |
} | |
return nil; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment