Could someone please head me in the right direction with my issue? Long story short I am working on a financial sort of calculator. UIPicker 1st component is an array of what type of result you are looking for (ie. Tip, Interest Payment, Loan Payment), 2nd component is a loop of interest rates.
I am having trouble saying if [component 1 objectatIndex =equals "Tip"], do this calculation, if [component 1 objecAtIndex = loan payment[, do this calculation. So I need to know which object in component 1 was chosen, and then do a calculation using component 2's interest rate. I just can't seem to get an if statement to work for that.
Thanks in advance,
I am having trouble saying if [component 1 objectatIndex =equals "Tip"], do this calculation, if [component 1 objecAtIndex = loan payment[, do this calculation. So I need to know which object in component 1 was chosen, and then do a calculation using component 2's interest rate. I just can't seem to get an if statement to work for that.
Thanks in advance,