1、建立一个single view application工程
helloviewopen = [[helloview alloc] initWithNibName:@"helloview" bundle:nil];
[self.view addSubview:helloviewopen.view];
#import "opennewviewViewControlle
r.h"
#import "helloview.h"
@implementation opennewviewViewControlle
r
helloview *helloviewopen;
...............................................................
//按钮事件
-(IBAction)openview:(id)sender
{
}