Revision: 43652
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at March 28, 2011 23:21 by magickaito
Initial Code
#import "VCExampleViewController.h"
//---import the header file for the view controller---
#import "SecondViewController.h"
@implementation VCExampleViewController
SecondViewController *secondViewController;
//---add the view of the second view controller to the current view---
-(IBAction) displayView:(id) sender{
secondViewController = [[SecondViewController alloc]
initWithNibName:@"SecondView"
bundle:nil];
[self.view addSubview:secondViewController.view];
}
- (void)dealloc {
//---release the memory used by the view controller---
[secondViewController release];
[super dealloc];
}
@end
Initial URL
Initial Description
Initial Title
Link to a new view controller from the first view controller
Initial Tags
Initial Language
Objective C