- (IBAction)doSomething:(id)sender model used generically
<p>So I was curious about something and not sure if there is a "standard" or "good" coding practice for something.  If you have a home page for example with 3 buttons (like the facebook iphone app dashboard), that go to various parts of the app by pushing a view controller, then on one button, I would have the IBAction tied to it as:</p>

<pre><code>- (IBAction)showSummary:(id)sender {
    SummaryViewController *detailViewController = [[[SummaryViewController alloc] initWithNibName:@"SummaryViewController" bundle:nil] autorelease];
    detailViewController.view.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
    detailViewController.view.autoresizesSubviews = YES;
    [self.navigationController pushViewController:detailViewController animated:YES];   
}
</code></pre>

<p>So my first question is, let's say on the first time I launch the app, I want to show this page first.  So in viewDidLoad, could I just call this method</p>

<pre><code>[self showSummary:nil];
</code></pre>

<p>Or is it better to just have the same code in my viewDidLoad.</p>

<p>The second question regarding this is refactoring.  If all 3 of my buttons do the same thing in creating a viewController and pushing it onto the stack, the only difference being which viewController to initializer </p>

<p>e.g.</p>

<pre><code>SummaryViewController *detailViewController = [[[SummaryViewController alloc] 
</code></pre>

<p>Should I refactor these methods?  If so, what would be a good way to do it?  Thanks!</p>
