Hi,
I am new to the iPhone SDK, however, I have been programming for a number of years. My experience ranges from Perl to Visual basic to JavaScript to SQL. I programmed briefly in C in college (a while ago) I find objective-C a very cool language and I am excited learning it. I think my main confusion is with IB.
I am creating a fitness related app that has 6 UITableViews that, in part, allow the user to drill down to choose exercises they want and they can then record the number of sets of reps they did and keep track of their progress.
I have successfully created the table views and they work fine. What is really hanging me up (I don't know why, I suspect it's IB) I want to have a Menu view load first. The menu will have buttons that when clicked will load the respective table views. For some reason I can't seem to get my head around how to make this happen. I finally got the menu view to load and hooked up one of the buttons but I can't seem to get it to work.
I have tried to use:
where CardioRootViewController is the nib name of 1 of the table views.
The simulator tries to load but hangs.
every one of these get me "Terminating app due to uncaught exception."
I may not be connecting up correctly in IB, but the truth is I am stumped.
Can anyone out there she a bit of light on this? It sure would help my frustration level.
I just finished re-reading Navigation Controllers in the docs, I also have and read, "Sam's teach yourself iPhone App development" Ray & Johnson, "Beginning iPhone Development" Mark & LaMarche, "iPhone In Action" Allen & Appelcline, and I am using "Programming in Objective-C 2.0" Kochan, as a reference. Als I have lurked and searched here to find an answer. So I really have tried to solve this on my own first.
Please excuse the long post.
Thanks very much in advance
Dave Fletcher
I am new to the iPhone SDK, however, I have been programming for a number of years. My experience ranges from Perl to Visual basic to JavaScript to SQL. I programmed briefly in C in college (a while ago) I find objective-C a very cool language and I am excited learning it. I think my main confusion is with IB.
I am creating a fitness related app that has 6 UITableViews that, in part, allow the user to drill down to choose exercises they want and they can then record the number of sets of reps they did and keep track of their progress.
I have successfully created the table views and they work fine. What is really hanging me up (I don't know why, I suspect it's IB) I want to have a Menu view load first. The menu will have buttons that when clicked will load the respective table views. For some reason I can't seem to get my head around how to make this happen. I finally got the menu view to load and hooked up one of the buttons but I can't seem to get it to work.
I have tried to use:
Code:
CardioRootViewController *cardioRVC = [[CardioRootViewController alloc] initWithNibName:@"CardioRootViewController" bundle:[NSBundle mainBundle]];
[self.navigationController pushViewController:cardioRVC animated:YES];
[cardioRVC release];
and
CardioRootViewController *cardioRVC = [[CardioRootViewController alloc] initWithNibName:@"CardioRootViewController" bundle:nil];
[self presentModalViewController:cardioRVC animated:YES];
[cardioRVC release];
and
CardioRootViewController *RootVC = [[CardioRootViewController alloc] initWithNibName:nil bundle:nil];
[self presentModalViewController:RootVC animated:YES];
[RootVC release];
where CardioRootViewController is the nib name of 1 of the table views.
The simulator tries to load but hangs.
every one of these get me "Terminating app due to uncaught exception."
Code:
'NSInvalidArgumentException', reason: '*** -[UIView cardioButtonPressed]: unrecognized selector sent to instance 0x4523cc0'
2010-03-03 17:40:03.200 DrillDownApp[6078:20b] Stack:
I may not be connecting up correctly in IB, but the truth is I am stumped.
Can anyone out there she a bit of light on this? It sure would help my frustration level.
I just finished re-reading Navigation Controllers in the docs, I also have and read, "Sam's teach yourself iPhone App development" Ray & Johnson, "Beginning iPhone Development" Mark & LaMarche, "iPhone In Action" Allen & Appelcline, and I am using "Programming in Objective-C 2.0" Kochan, as a reference. Als I have lurked and searched here to find an answer. So I really have tried to solve this on my own first.
Please excuse the long post.
Thanks very much in advance
Dave Fletcher