add subview in another subview
i use this code but nothing shows开发者_Python百科 up!!!!? help
CGRect frame = CGRectMake(0.0,0.0,480,320);
secondview=[[UIView alloc] initWithFrame:frame];
[self.view addSubview:secondview];
[self.view bringSubviewToFront:secondview];
Right now your view doesn't have any content. Try adding this:
[secondView setBackgroundColor:[UIColor redColor]];
精彩评论