if(self.newView == nil) //newView表示你的新窗口 { NewView *newView = [[NewView alloc]init]; //新建一个对象 self.newView = [newView autorelease]; [self.view addSubview:self.newView.view]; //在当前view加上那个新的对象,也就是newView} else { [self.view addSubview:self.newView.view]; }这样就行了,你也可以去我百度空间看看,上面有很多的例子