2010-10-17 110 views
0

我使用此代码,但没有显示出来!!!!?帮助在另一个子视图中添加子视图

CGRect frame = CGRectMake(0.0,0.0,480,320); 
secondview=[[UIView alloc] initWithFrame:frame]; 

[self.view addSubview:secondview]; 
[self.view bringSubviewToFront:secondview]; 

回答

1

现在您的视图没有任何内容。尝试添加:

[secondView setBackgroundColor:[UIColor redColor]]; 
相关问题