Hi
I have an app that is currently linking to a variety of different UIViewControllers, i would like to limit the amount of ViewControllers as it will get rather crowded and save memory.
Could anyone help me with the following problem please!
I have a list of players in a band that i would like to display biographies and an image for.
I have a menu page and would like it so that when the user clicks on a particular band members name it pushes in a view controller (playerpushedViewController) and puts in the relevant band members biography into a UITextView and their picture into a UIImageView.
For th purpose of any coding i and an example i am using band member ones biography as "band1.txt" and their image as "band1.jpg"
At the moment i am using the following code to load my view controller
Code:
- (IBAction)switch1:(id)sender;
{
pushedplayerViewController *third =[[pushedplayerViewController alloc] initWithNibName:nil bundle:nil];
[self presentModalViewController:third animated:YES];
}
any ideas anyone
(ps i have managed to do it by using separate ViewControllers but would like to use one as i have 28 band members)