views:

30

answers:

0

Hello,

My current navigation scheme is as follows:

  1. Splash Screen where user selects specific topic
  2. The selection splash screen is hidden and displays the results (same Class as 1)
  3. When user selects result, it displays the full result (different class).

Now, on view #3 is where I have a custom Back button, however, it's just sending the user back to the Splash Screen:

if(sender == bCancel) {
[[NSNotificationCenter defaultCenter] postNotificationName:@"ShowResultsList" object:nil];
{

The ShowResultsList is sending back to the Splash Screen because its all written on in the same class file. Is there anyway just to have it go back to a previous view without using UINavigationController and Navigation bar?

Here is the code that shows you that when a topic is selected, it's only hiding the splash screen rather than sending to a new page:

- (void) dontTouchMe:(id)sender {
if(sender == bBaseball)
    sSport = [[NSString alloc] initWithString:@"Baseball%7C"];
else if(sender == bFootball)
    sSport = [[NSString alloc] initWithString:@"Football%7C"];
else if(sender == bBasketball)
    sSport = [[NSString alloc] initWithString:@"Basketball%7C"];
else if(sender == bHockey)
    sSport = [[NSString alloc] initWithString:@"Hockey%7C"];

topic1.hidden = topic2.hidden = topic3.hidden = topic4.hidden = YES;
lSplash.hidden = YES;