iPhone - UIButton to select tab in different view
<p>Fairly new to iPhone app development, so this might be really obvious (if so, apologies in advance!)</p>

<p>I'm building an app which has a tab bar. However, when the app first runs and 'launch screen' is shown with 3 UIButtons - each of these buttons points at a view of one of the tabs. What I need to do is:</p>

<p>Close the existing view
Open the selected view
Set the highlighted tab accordingly</p>

<p>This sounds like it should be quite easy, but a few hours of Googling has found nothing!</p>

<p>Thanks for your help,
Kev</p>

<p><strong>Additional:</strong><br>
Sorry - I am using a tabBarController... But instead of immediately launching the tab bar views I'm using the code below to launch the home menu instead.</p>

<pre><code>- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {    

    homeViewController *splashView = [[homeViewController alloc] initWithNibName:@"homeView" bundle:nil];
    [window addSubview:splashView.view];


//  [window addSubview:tabBarController.view];
    [window makeKeyAndVisible];

    return YES;
}
</code></pre>

<p>On the home menu there are UIButtons which need to link to individual tabs... Hope this clarifies...</p>

<p>Cheers!</p>
