Created
September 19, 2010 08:26
-
-
Save leepfrog/586583 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-(IBAction)presentSalesView:(id)sender { | |
// We hold on to the salesViewController since we'll be using it a bunch | |
if (nil == self.salesViewController) { | |
SCSalesViewController *viewController = [[SCSalesViewController alloc] initWithNibName:@"SCSalesView" bundle:nil]; | |
self.salesViewController = viewController; | |
[viewController release]; | |
} | |
[self.navigationController pushViewController:self.salesViewController animated:YES]; | |
} | |
// Use and trash after i'm done | |
-(IBAction)presentMySCView { | |
SCMySalesViewController *mySalesViewController = [[SCMySalesViewController alloc] initWithNibName:@"SCMySalesView" bundle:nil]; | |
[self presentModalViewController:mySalesViewController animated:YES]; | |
[mySalesViewController release]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment