I have an app that starts in a table view, then loads the same page no matter which cell you choose.
That window then loads different numbers from my appdelegate, based on which cell you selected. For a rough example...
In my delegate
Code:
float address1;
float personselect;
In my rootviewcontroller
Code:
mainDelegate.personselect = indexPath.row +1;
In profileviewcontroller (this is what I'm trying to do)
Code:
NSString *tempstring = [NSString stringWithFormat:@"mainDelegate.address%.f", mainDelegate.playerselect];
[adresslabel setText:[NSString stringWithFormat:@"%.f", tempstring]];
So basically, I'm displaying a float that depends on a float, and I absolutely can not write out all of the if/then statements for it.
I obviously haven't gotten this to work, if there's anybody that understands what I'm trying to do and can help, I would highly appreciate it. thanks.